class Rvm2::Cli::Plugin

Public Class Methods

command() click to toggle source
# File lib/rvm2/cli/plugin.rb, line 7
def self.command
  name = self.name.split(/::/)
  name.shift(2)
  name.join("/").downcase
end
handles?(*args) click to toggle source
# File lib/rvm2/cli/plugin.rb, line 2
def self.handles?(*args)
  args.flatten!
  args.length > 0 && args[0] == command
end
new(rvm2plugins, *args) click to toggle source
# File lib/rvm2/cli/plugin.rb, line 13
def initialize(rvm2plugins, *args)
  @args = args.flatten
  @rvm2plugins = rvm2plugins
end