Class: Types::Typed::BytesType

Inherits:
ValueType show all
Defined in:
lib/solidity/typed/metatypes/types.rb

Overview

fix: see comments above - is bytes dynamic? or frozen?

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#array?, #check_and_normalize_literal, #eql?, #hash, #mapping?, #parse_integer, #pretty_print, #raise_type_error

Class Method Details

.instanceObject



202
# File 'lib/solidity/typed/metatypes/types.rb', line 202

def self.instance()  @instance ||= new; end

Instance Method Details

#==(other) ⇒ Object



207
# File 'lib/solidity/typed/metatypes/types.rb', line 207

def ==(other)  other.is_a?( BytesType ); end

#formatObject Also known as: to_s



204
# File 'lib/solidity/typed/metatypes/types.rb', line 204

def format() 'bytes'; end

#mut?Boolean

Returns:

  • (Boolean)


212
# File 'lib/solidity/typed/metatypes/types.rb', line 212

def mut?() false; end

#new(initial_value) ⇒ Object



215
# File 'lib/solidity/typed/metatypes/types.rb', line 215

def new( initial_value ) Bytes.new( initial_value ); end

#typedclassObject



210
# File 'lib/solidity/typed/metatypes/types.rb', line 210

def typedclass()       Bytes;  end

#typedclass_nameObject



209
# File 'lib/solidity/typed/metatypes/types.rb', line 209

def typedclass_name()  Bytes.name; end

#zeroObject Also known as: new_zero



213
# File 'lib/solidity/typed/metatypes/types.rb', line 213

def zero() Bytes.zero; end