Class: Nero::ProcTag
Instance Method Summary collapse
-
#initialize(callable) ⇒ ProcTag
constructor
A new instance of ProcTag.
- #resolve(args, context:) ⇒ Object
Constructor Details
#initialize(callable) ⇒ ProcTag
Returns a new instance of ProcTag.
5 |
# File 'lib/nero/proc_tag.rb', line 5 def initialize(callable) = @callable = callable |
Instance Method Details
#resolve(args, context:) ⇒ Object
7 |
# File 'lib/nero/proc_tag.rb', line 7 def resolve(args, context:) = @callable.call(args, context:) |