Class: Waves::Console
Class Attribute Summary collapse
-
.console ⇒ Object
readonly
Returns the value of attribute console.
Attributes inherited from Runtime
Class Method Summary collapse
- .load(options = {}) ⇒ Object
-
.method_missing(*args) ⇒ Object
allow Waves::Console to act as The Console Instance.
Methods inherited from Runtime
#config, #debug?, #initialize, #log, #mode, #reload, #synchronize, #synchronize?
Constructor Details
This class inherits a constructor from Waves::Runtime
Class Attribute Details
.console ⇒ Object (readonly)
Returns the value of attribute console.
8 9 10 |
# File 'lib/runtime/console.rb', line 8 def console @console end |
Class Method Details
.load(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/runtime/console.rb', line 10 def load( ={} ) @console ||= Waves::Console.new( ) Kernel.load( [:startup] || 'startup.rb' ) Object.instance_eval { include Waves::Mocks } end |
.method_missing(*args) ⇒ Object
allow Waves::Console to act as The Console Instance
17 |
# File 'lib/runtime/console.rb', line 17 def method_missing(*args); @console.send(*args); end |