Sha256: 43eb299360c4bcbe2f077e49119ee9012c9b12a0e4ff53504527254a943f975a
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require "json" module CCEngine class Config def initialize(json_string) @json_string = json_string end def include_paths parsed_json.fetch("include_paths") end def exclude_paths parsed_json.fetch("exclude_paths") end def enabled? parsed_json.fetch("enabled") end protected attr_reader :json_string private def parsed_json @parsed_json ||= JSON.parse(json_string) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codeclimate-engine-rb-0.4.2 | lib/cc_engine/config.rb |