Class: GitPrepareBranch::Context
- Inherits:
-
Object
- Object
- GitPrepareBranch::Context
- Defined in:
- lib/git-prepare-branch/context.rb
Instance Attribute Summary collapse
-
#terminal ⇒ Object
readonly
Returns the value of attribute terminal.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(terminal:, variables:) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(terminal:, variables:) ⇒ Context
Returns a new instance of Context.
7 8 9 10 |
# File 'lib/git-prepare-branch/context.rb', line 7 def initialize(terminal:, variables:) @terminal = terminal @variables = OpenStruct.new(variables) end |
Instance Attribute Details
#terminal ⇒ Object (readonly)
Returns the value of attribute terminal.
5 6 7 |
# File 'lib/git-prepare-branch/context.rb', line 5 def terminal @terminal end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
5 6 7 |
# File 'lib/git-prepare-branch/context.rb', line 5 def variables @variables end |