Class: H8::ProcGate
Overview
The gate for Ruby’s callable to support javascript’s ‘apply’ functionality
Instance Method Summary collapse
- #apply(this, args) ⇒ Object
- #call(*args) ⇒ Object
-
#initialize(callable) ⇒ ProcGate
constructor
A new instance of ProcGate.
Constructor Details
#initialize(callable) ⇒ ProcGate
Returns a new instance of ProcGate.
288 289 290 |
# File 'lib/h8/context.rb', line 288 def initialize callable @callable = callable end |