This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

>>

        # Proc.>>

(from ruby core)
---
    prc >> g -> a_proc

---

Returns a proc that is the composition of this proc and the given *g*.
The returned proc takes a variable number of arguments, calls this proc
with them then calls *g* with the result.

    f = proc {|x| x * x }
    g = proc {|x| x + x }
    p (f >> g).call(2) #=> 8

*g* could be other Proc, or Method, or any other object responding to
`call` method:

    class Parser
      def self.call(text)
         # ...some complicated parsing logic...
      end
    end

    pipeline = File.method(:read) >> Parser >> proc { |data| puts "data size: #{data.count}" }
    pipeline.call('data.json')

See also Method#>> and Method#<<.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.