Class: Checkson::Config
- Inherits:
-
Object
- Object
- Checkson::Config
- Includes:
- Check
- Defined in:
- lib/checkson/config.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(file) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(file) ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/checkson/config.rb', line 11 def initialize(file) @checks = [] instance_eval(File.read(file)) end |
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks.
7 8 9 |
# File 'lib/checkson/config.rb', line 7 def checks @checks end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/checkson/config.rb', line 7 def name @name end |