Class: Twostroke::Runtime::Types::Boolean
- Defined in:
- lib/twostroke/runtime/types/boolean.rb
Instance Attribute Summary collapse
-
#boolean ⇒ Object
readonly
Returns the value of attribute boolean.
Class Method Summary collapse
Instance Method Summary collapse
- #===(other) ⇒ Object
-
#initialize(boolean) ⇒ Boolean
constructor
A new instance of Boolean.
- #to_ruby ⇒ Object
- #typeof ⇒ Object
Methods inherited from Value
Constructor Details
#initialize(boolean) ⇒ Boolean
Returns a new instance of Boolean.
11 12 13 |
# File 'lib/twostroke/runtime/types/boolean.rb', line 11 def initialize(boolean) @boolean = boolean end |
Instance Attribute Details
#boolean ⇒ Object (readonly)
Returns the value of attribute boolean.
10 11 12 |
# File 'lib/twostroke/runtime/types/boolean.rb', line 10 def boolean @boolean end |
Class Method Details
Instance Method Details
#===(other) ⇒ Object
19 20 21 |
# File 'lib/twostroke/runtime/types/boolean.rb', line 19 def ===(other) other.is_a?(Boolean) && boolean == other.boolean end |
#to_ruby ⇒ Object
15 16 17 |
# File 'lib/twostroke/runtime/types/boolean.rb', line 15 def to_ruby boolean end |
#typeof ⇒ Object
23 24 25 |
# File 'lib/twostroke/runtime/types/boolean.rb', line 23 def typeof "boolean" end |