Class: Delayed2
Instance Method Summary collapse
-
#initialize(&b) ⇒ Delayed2
constructor
A new instance of Delayed2.
- #to_s ⇒ Object
Constructor Details
#initialize(&b) ⇒ Delayed2
Returns a new instance of Delayed2.
2 3 4 |
# File 'lib/ontomde-core/delayed.rb', line 2 def initialize(&b) @b=b end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/ontomde-core/delayed.rb', line 5 def to_s return @b.call end |