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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#formatObject Also known as: to_s



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

def format() 'bytes'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?() false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       Bytes;  end

#typedclass_nameObject



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

def typedclass_name()  Bytes.name; end

#zeroObject Also known as: new_zero



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

def zero() Bytes.zero; end