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
-
#default_groups ⇒ Object
Returns the value of attribute default_groups.
-
#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
#defApplication, #defDefaultGroup
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
15 16 17 18 19 20 |
# File 'lib/omf_rc_shm/app.rb', line 15 def initialize super @definitions ||= Hash.new @watchdog = nil @default_groups = [] end |
Instance Attribute Details
#default_groups ⇒ Object
Returns the value of attribute default_groups.
12 13 14 |
# File 'lib/omf_rc_shm/app.rb', line 12 def default_groups @default_groups end |
#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
22 23 24 |
# File 'lib/omf_rc_shm/app.rb', line 22 def load_definition(file_path) eval(File.read(file_path)) end |