class CCEngine::Config

Attributes

json_string[R]

Public Class Methods

new(json_string) click to toggle source
# File lib/cc_engine/config.rb, line 5
def initialize(json_string)
  @json_string = json_string
end

Public Instance Methods

enabled?() click to toggle source
# File lib/cc_engine/config.rb, line 17
def enabled?
  parsed_json.fetch("enabled")
end
exclude_paths() click to toggle source
# File lib/cc_engine/config.rb, line 13
def exclude_paths
  parsed_json.fetch("exclude_paths")
end
include_paths() click to toggle source
# File lib/cc_engine/config.rb, line 9
def include_paths
  parsed_json.fetch("include_paths")
end

Private Instance Methods

parsed_json() click to toggle source
# File lib/cc_engine/config.rb, line 27
def parsed_json
  @parsed_json ||= JSON.parse(json_string)
end