Class: ComfyConf::Checker
- Inherits:
-
Object
- Object
- ComfyConf::Checker
- Defined in:
- lib/comfy_conf/checker.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(definition, given_prefix, data) ⇒ Checker
constructor
A new instance of Checker.
- #prefix ⇒ Object
Constructor Details
#initialize(definition, given_prefix, data) ⇒ Checker
Returns a new instance of Checker.
3 4 5 |
# File 'lib/comfy_conf/checker.rb', line 3 def initialize(definition, given_prefix, data) @definition, @given_prefix, @data = definition, given_prefix, data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/comfy_conf/checker.rb', line 6 def data @data end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
6 7 8 |
# File 'lib/comfy_conf/checker.rb', line 6 def definition @definition end |
Instance Method Details
#check ⇒ Object
8 9 10 11 |
# File 'lib/comfy_conf/checker.rb', line 8 def check definition.props.each {|p| check_prop(p) } definition.configs.each {|c| check_config(c) } end |
#prefix ⇒ Object
13 14 15 |
# File 'lib/comfy_conf/checker.rb', line 13 def prefix given_prefix end |