lib/gem_leaves.rb
# Simply puts the list of _leaves_ to STDOUT in a format suitable to pipe it
# to RubyGems.
Simply puts the list of _leaves_ to STDOUT in a format suitable to pipe it
to RubyGems.
Simply puts the list of _leaves_ to STDOUT in a format suitable to pipe it to RubyGems .
def pipe_output
    @leaves.sort.each do |leaf|
      puts "#{leaf.name} --version #{leaf.version}"
    end
  end
def pipe_output @leaves . sort . each do | leaf | puts "#{leaf.name} --version #{leaf.version}" end end
Simply puts the list of _leaves_ to STDOUT in a format suitable to pipe it
to RubyGems.
Simply puts the list of _leaves_ to STDOUT in a format suitable to pipe it to RubyGems .