Class: Proc
- Includes:
- Chitin::Runnable
- Defined in:
- lib/chitin/commands/ruby.rb
Instance Method Summary collapse
-
#|(other) ⇒ Object
# access private methods def [](*args) if method(args.first) method(args.first).call *args else raise NoMethodError.new(“undefined method” + “‘#argsargs.first’ for #self:#selfself.class”) end end.
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 |