class Dhall::Util::LazyPromise
Public Class Methods
new(&block)
click to toggle source
Calls superclass method
# File lib/dhall/util.rb, line 9 def initialize(&block) super @block = block end
Public Instance Methods
subscribe(*args)
click to toggle source
Calls superclass method
# File lib/dhall/util.rb, line 14 def subscribe(*args) super begin fulfill(@block.call) rescue => e reject(e) end end