Class: FalseClass

Inherits:
Object
  • Object
show all
Includes:
Bool
Defined in:
lib/solidity/typed/bool.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Bool

#as_data, #type, zero

Class Method Details

.typeObject

“hack” - enables false.is_a?(Bool)

and false.type 
and false.as_data


35
# File 'lib/solidity/typed/bool.rb', line 35

def self.type()  Types::Typed::BoolType.instance; end

Instance Method Details

#zero?Boolean

Returns:

  • (Boolean)


36
# File 'lib/solidity/typed/bool.rb', line 36

def zero?() true; end