Class: Lambdapunt::Config
- Inherits:
-
Object
- Object
- Lambdapunt::Config
- Defined in:
- lib/lambdapunt/config.rb
Instance Attribute Summary collapse
-
#functions ⇒ Object
readonly
Returns the value of attribute functions.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(filename = './.lambdapunt.yml') ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(filename = './.lambdapunt.yml') ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 |
# File 'lib/lambdapunt/config.rb', line 7 def initialize(filename='./.lambdapunt.yml') data = transform_keys_to_symbols(SafeYAML::load_file(filename)) @settings = data[:settings] @functions = data[:functions] end |
Instance Attribute Details
#functions ⇒ Object (readonly)
Returns the value of attribute functions.
5 6 7 |
# File 'lib/lambdapunt/config.rb', line 5 def functions @functions end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
5 6 7 |
# File 'lib/lambdapunt/config.rb', line 5 def settings @settings end |