class Tent::BufferedCall
Wrap calls to the underlying.
Attributes
args[R]
block[R]
name[R]
Public Class Methods
new(name, *args, &block)
click to toggle source
# File lib/tent.rb, line 49 def initialize(name, *args, &block) @name = name @args = args @block = block end
Public Instance Methods
apply_to(target)
click to toggle source
# File lib/tent.rb, line 55 def apply_to(target) block ? target.send(name, *args, &block) : target.send(name, *args) end
matched_by?(filters)
click to toggle source
# File lib/tent.rb, line 59 def matched_by?(filters) 0 == filters.length || filters.include?(name) end