Class: SimpleGit::DiffOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_git/diff_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDiffOptions

Returns a new instance of DiffOptions.



5
6
7
8
# File 'lib/simple_git/diff_options.rb', line 5

def initialize
  @ptr = Git2::GitDiffOption.new
  @ptr[:version] = 1
end

Instance Attribute Details

#ptrObject (readonly)

Returns the value of attribute ptr.



3
4
5
# File 'lib/simple_git/diff_options.rb', line 3

def ptr
  @ptr
end

Instance Method Details

#[](key) ⇒ Object



10
11
12
# File 'lib/simple_git/diff_options.rb', line 10

def [](key)
  @ptr[key]
end

#[]=(key, value) ⇒ Object



14
15
16
# File 'lib/simple_git/diff_options.rb', line 14

def []=(key, value)
  @ptr[key] = value
end