Class: Swamp::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/swamp/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cli) ⇒ Context

Returns a new instance of Context.



8
9
10
# File 'lib/swamp/context.rb', line 8

def initialize(cli)
  @cli = cli
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



6
7
8
# File 'lib/swamp/context.rb', line 6

def args
  @args
end

#cliObject (readonly)

Returns the value of attribute cli.



4
5
6
# File 'lib/swamp/context.rb', line 4

def cli
  @cli
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/swamp/context.rb', line 5

def options
  @options
end