Class: Current
- Inherits:
-
Object
- Object
- Current
- Defined in:
- lib/michelson/michelson.rb
Class Method Summary collapse
- .amount ⇒ Object
- .amount=(value) ⇒ Object
-
.failwith(*args) ⇒ Object
todo/check: Current.failwith exits? - always use “global” failwith - why? why not?.
- .sender ⇒ Object
- .sender=(value) ⇒ Object
Class Method Details
.amount ⇒ Object
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 |
.sender ⇒ Object
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 |