Class: Kachikachi::Patch

Inherits:
Object
  • Object
show all
Defined in:
lib/kachikachi/patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_name, content, options) ⇒ Patch

Returns a new instance of Patch.



7
8
9
10
# File 'lib/kachikachi/patch.rb', line 7

def initialize(file_name, content, options)
  @file_name = file_name || ''
  @body = PatchBody.new(content, options)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/kachikachi/patch.rb', line 5

def body
  @body
end

#file_nameObject

Returns the value of attribute file_name.



5
6
7
# File 'lib/kachikachi/patch.rb', line 5

def file_name
  @file_name
end