Sha256: e0542027704e5025abb0ef49feed2508447eb6354346cbcdc54b0da927c375dc

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

# file:lib/rip/commands/reverse.rb
#
# This file would normally live in lib/rip/commands or ~/.rip/rip-commands
#
# See the `Plugins` section of the README for more information.
#

module Rip
  module Commands
    def reverse(options = {}, package = nil, *args)
      puts "ripenv: #{Rip::Env.active}", ''
      if package
        puts package.reverse
      else
        manager.packages.each do |package|
          puts package.to_s.reverse
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rip-0.0.4 examples/reverse.rb
rip-0.0.5 examples/reverse.rb
rip-0.0.3 examples/reverse.rb
rip-0.0.2 examples/reverse.rb
rip-0.0.1 examples/reverse.rb