Class: Rpub::Command

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

Direct Known Subclasses

Rpub::Commands::Clean, Rpub::Commands::Compile, Rpub::Commands::Generate, Rpub::Commands::Package, Rpub::Commands::Preview, Rpub::Commands::Stats

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Command) initialize(args, options)

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

- (Object) args (readonly)

Returns the value of attribute args



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

def args
  @args
end

- (Object) options (readonly)

Returns the value of attribute options



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

def options
  @options
end