Module: Bool
- Included in:
- FalseClass, TrueClass
- Defined in:
- lib/solidity/typed/bool.rb
Class Method Summary collapse
-
.type ⇒ Object
note: self.type or such WILL not get included via module include in TrueClass & FalseClass add in TrueClass & FalseClass TrueClass.type will NOT work via “inheritance” like a “true” superclass - why? why not?.
-
.zero ⇒ Object
note: lets you use Bool.type.
Instance Method Summary collapse
-
#as_data ⇒ Object
that is, return true or false.
- #type ⇒ Object
Class Method Details
.type ⇒ Object
note:
self.type or such WILL not get included
via module include in TrueClass & FalseClass
add in TrueClass & FalseClass
TrueClass.type will NOT work via "inheritance" like a "true" superclass - why? why not?
22 |
# File 'lib/solidity/typed/bool.rb', line 22 def self.type() Types::Typed::BoolType.instance; end |
.zero ⇒ Object
note: lets you use Bool.type
24 |
# File 'lib/solidity/typed/bool.rb', line 24 def self.zero() false; end |
Instance Method Details
#as_data ⇒ Object
that is, return true or false
15 |
# File 'lib/solidity/typed/bool.rb', line 15 def as_data() self; end |
#type ⇒ Object
14 |
# File 'lib/solidity/typed/bool.rb', line 14 def type() self.class.type; end |