class NxtPipeline::Constructor
Attributes
block[R]
opts[R]
Public Class Methods
new(name, **opts, &block)
click to toggle source
# File lib/nxt_pipeline/constructor.rb, line 3 def initialize(name, **opts, &block) @name = name @block = block @opts = opts end
Public Instance Methods
call(*args, **opts, &block)
click to toggle source
# File lib/nxt_pipeline/constructor.rb, line 13 def call(*args, **opts, &block) # ActiveSupport's #delegate does not properly handle keyword arg passing # in the latest released version. Thefore we bypass delegation by reimplementing # the method ourselves. This is already fixed in Rails master though. self.block.call(*args, **opts, &block) end