Methods

Files

Tins::ProcCompose

Public Instance Methods

*(other) click to toggle source
Alias for: compose
compose(other) click to toggle source
# File lib/tins/proc_compose.rb, line 3
def compose(other)
  self.class.new do |*args|
    if other.respond_to?(:call)
      call(*other.call(*args))
    else
      call(*other.to_proc.call(*args))
    end
  end
end
Also aliased as: *

[Validate]

Generated with the Darkfish Rdoc Generator 2.