Class: Current

Inherits:
Object
  • Object
show all
Defined in:
lib/michelson/michelson.rb

Class Method Summary collapse

Class Method Details

.amountObject



88
# File 'lib/michelson/michelson.rb', line 88

def self.amount()       @amount ||= 0; end

.amount=(value) ⇒ Object



87
# File 'lib/michelson/michelson.rb', line 87

def self.amount=(value) @amount = value; end

.failwith(*args) ⇒ Object

todo/check: Current.failwith exits? - always use “global” failwith - why? why not?



95
96
97
98
# File 'lib/michelson/michelson.rb', line 95

def self.failwith( *args)
  ## hack: todo - is there a better way to call "global" outer failwith function/method ???
  Object.send( :failwith, *args );
end

.senderObject



91
# File 'lib/michelson/michelson.rb', line 91

def self.sender()       @sender ||= "0x0000"; end

.sender=(value) ⇒ Object



90
# File 'lib/michelson/michelson.rb', line 90

def self.sender=(value) @sender = value; end