Class: Checkson::Config

Inherits:
Object
  • Object
show all
Includes:
Check
Defined in:
lib/checkson/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checksObject (readonly)

Returns the value of attribute checks.



7
8
9
# File 'lib/checkson/config.rb', line 7

def checks
  @checks
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/checkson/config.rb', line 7

def name
  @name
end