class String
Public Instance Methods
send( value )
click to toggle source
# File lib/universum/address.rb, line 64 def send( value ) ## check if self is an address if self.start_with?( '0x' ) ## fix/fix/fix: use Address[self] lookup!!!! ## do NOT use Account any longer Account[self].address.send( value ) else raise "(Auto-)Type Conversion from Address (Hex) String to Account Failed; Expected String Starting with 0x got #{self}; Contract Halted (Stopped)" end end
transfer( value )
click to toggle source
# File lib/universum/address.rb, line 53 def transfer( value ) ## check if self is an address if self.start_with?( '0x' ) ## fix/fix/fix: use Address[self] lookup!!!! ## do NOT use Account any longer Account[self].address.transfer( value ) else raise "(Auto-)Type Conversion from Address (Hex) String to Account Failed; Expected String Starting with 0x got #{self}; Contract Halted (Stopped)" end end