Class: OmfRcShm::App

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from DSL

#defApplication

Constructor Details

#initializeApp



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

#definitionsObject

Returns the value of attribute definitions.



10
11
12
# File 'lib/omf_rc_shm/app.rb', line 10

def definitions
  @definitions
end

#watchdogObject

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