Class: Twirly::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/twirly/commands/base.rb

Direct Known Subclasses

FetchUser, Pick, Pull

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, options) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/twirly/commands/base.rb', line 8

def initialize(args, options)
  @args = args
  @options = options.dup.symbolize_keys
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



6
7
8
# File 'lib/twirly/commands/base.rb', line 6

def args
  @args
end

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/twirly/commands/base.rb', line 6

def options
  @options
end