Class: GitPrepareBranch::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/git-prepare-branch/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#terminalObject (readonly)

Returns the value of attribute terminal.



5
6
7
# File 'lib/git-prepare-branch/context.rb', line 5

def terminal
  @terminal
end

#variablesObject (readonly)

Returns the value of attribute variables.



5
6
7
# File 'lib/git-prepare-branch/context.rb', line 5

def variables
  @variables
end