Class: Fukubukuro::ECMA::Core::Boolean

Inherits:
Container show all
Defined in:
lib/amber/fukubukuro/ecma_core.rb

Constant Summary collapse

True =
new true
False =
new false

Instance Attribute Summary

Attributes inherited from Container

#original, #value

Instance Method Summary collapse

Methods inherited from Container

bind_to_original, inspect, #method_missing, #pretty_print, #value_inspect

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fukubukuro::ECMA::Core::Container

Instance Method Details

#inspectObject



315
316
317
# File 'lib/amber/fukubukuro/ecma_core.rb', line 315

def inspect
  value.inspect
end

#new(value) ⇒ Object



312
313
314
# File 'lib/amber/fukubukuro/ecma_core.rb', line 312

def new value
  value ? True : False
end