Class: Swamp::Context
- Inherits:
-
Object
- Object
- Swamp::Context
- Defined in:
- lib/swamp/context.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#cli ⇒ Object
readonly
Returns the value of attribute cli.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(cli) ⇒ Context
constructor
A new instance of Context.
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
#args ⇒ Object
Returns the value of attribute args.
6 7 8 |
# File 'lib/swamp/context.rb', line 6 def args @args end |
#cli ⇒ Object (readonly)
Returns the value of attribute cli.
4 5 6 |
# File 'lib/swamp/context.rb', line 4 def cli @cli end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/swamp/context.rb', line 5 def @options end |