Class: OmfRcShm::App
- Inherits:
-
Object
- Object
- OmfRcShm::App
- Includes:
- DSL, Singleton
- Defined in:
- lib/omf_rc_shm/app.rb,
lib/omf_rc_shm/app/dsl.rb,
lib/omf_rc_shm/app/definition.rb
Defined Under Namespace
Modules: DSL Classes: Definition
Instance Attribute Summary collapse
-
#definitions ⇒ Object
Returns the value of attribute definitions.
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
- #load_definition(file_path) ⇒ Object
Methods included from DSL
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
12 13 14 15 |
# File 'lib/omf_rc_shm/app.rb', line 12 def initialize super @definitions ||= Hash.new end |
Instance Attribute Details
#definitions ⇒ Object
Returns the value of attribute definitions.
10 11 12 |
# File 'lib/omf_rc_shm/app.rb', line 10 def definitions @definitions end |
Instance Method Details
#load_definition(file_path) ⇒ Object
17 18 19 |
# File 'lib/omf_rc_shm/app.rb', line 17 def load_definition(file_path) eval(File.read(file_path)) end |