Class: Proc

Inherits:
Object show all
Includes:
Chitin::Runnable
Defined in:
lib/chitin/commands/ruby.rb

Instance Method Summary collapse

Methods included from Chitin::Runnable

#>, #[]

Instance Method Details

#|(other) ⇒ Object

# access private methods def [](*args)

if method(args.first)
  method(args.first).call *args[1..-1]
else
  raise NoMethodError.new("undefined method" +
                          "`#{args.first}' for #{self}:#{self.class}")
end

end



117
118
119
# File 'lib/chitin/commands/ruby.rb', line 117

def |(other)
  Pipe.new self, other
end