Class: Waves::Console

Inherits:
Object show all
Includes:
Runtime
Defined in:
lib/waves/runtime/console.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Runtime

#config, #debug?, #load, #logger, #mode, #reload, #synchronize, #synchronize?

Constructor Details

#initialize(options = {}) ⇒ Console

Returns a new instance of Console.



17
18
19
20
# File 'lib/waves/runtime/console.rb', line 17

def initialize( options = {} )
  @options = options
  load # load the runtime
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/waves/runtime/console.rb', line 7

def options
  @options
end

Class Method Details

.load(options = {}) ⇒ Object



11
12
13
14
# File 'lib/waves/runtime/console.rb', line 11

def self.load( options={} )
  Object.instance_eval { include Waves::Mocks }
  new( options )
end