class Drumknott::Outputs::Silent
Attributes
block[R]
Public Class Methods
call(&block)
click to toggle source
# File lib/drumknott/outputs/silent.rb, line 4 def self.call(&block) new(&block).call end
new(&block)
click to toggle source
# File lib/drumknott/outputs/silent.rb, line 8 def initialize(&block) @block = block end
Public Instance Methods
call(_label, collection)
click to toggle source
# File lib/drumknott/outputs/silent.rb, line 12 def call(_label, collection) collection.each { |item| block.call item } end