Class: Appraisal::Hooks::GemfileContext

Inherits:
Object
  • Object
show all
Defined in:
lib/appraisal/hooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(appraisal, path, content) ⇒ GemfileContext

Returns a new instance of GemfileContext.



14
15
16
17
18
# File 'lib/appraisal/hooks.rb', line 14

def initialize(appraisal, path, content)
  @appraisal = appraisal
  @path = path
  @content = content
end

Instance Attribute Details

#appraisalObject (readonly)

Returns the value of attribute appraisal.



12
13
14
# File 'lib/appraisal/hooks.rb', line 12

def appraisal
  @appraisal
end

#contentObject

Returns the value of attribute content.



11
12
13
# File 'lib/appraisal/hooks.rb', line 11

def content
  @content
end

#pathObject (readonly)

Returns the value of attribute path.



12
13
14
# File 'lib/appraisal/hooks.rb', line 12

def path
  @path
end