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.
-
#watchdog ⇒ Object
Returns the value of attribute watchdog.
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
14 15 16 17 18 |
# File 'lib/omf_rc_shm/app.rb', line 14 def initialize super @definitions ||= Hash.new @watchdog = nil 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 |
#watchdog ⇒ Object
Returns the value of attribute watchdog.
11 12 13 |
# File 'lib/omf_rc_shm/app.rb', line 11 def watchdog @watchdog end |
Instance Method Details
#load_definition(file_path) ⇒ Object
20 21 22 |
# File 'lib/omf_rc_shm/app.rb', line 20 def load_definition(file_path) eval(File.read(file_path)) end |