Class: GoodGuide::Gibbon::JS
Defined Under Namespace
Classes: Console
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
- #gibbon ⇒ Object
-
#initialize(opts = {}) ⇒ JS
constructor
A new instance of JS.
Constructor Details
#initialize(opts = {}) ⇒ JS
Returns a new instance of JS.
408 409 410 411 412 413 414 415 416 417 418 419 |
# File 'lib/goodguide/gibbon.rb', line 408 def initialize(opts={}) super() @debug = opts[:debug] self[:console] = Console.new if @debug load GoodGuide::Gibbon.dev_js_lib.to_s else load GoodGuide::Gibbon.js_lib.to_s end end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
407 408 409 |
# File 'lib/goodguide/gibbon.rb', line 407 def client @client end |
Class Method Details
.default ⇒ Object
393 394 395 |
# File 'lib/goodguide/gibbon.rb', line 393 def self.default @default ||= new end |
Instance Method Details
#gibbon ⇒ Object
421 422 423 |
# File 'lib/goodguide/gibbon.rb', line 421 def gibbon self[:Gibbon] end |