Class: Rpub::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/rpub/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, options) ⇒ Command

Returns a new instance of Command.



5
6
7
8
# File 'lib/rpub/command.rb', line 5

def initialize(args, options)
  @args, @options = args, options
  run
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



3
4
5
# File 'lib/rpub/command.rb', line 3

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/rpub/command.rb', line 3

def options
  @options
end