Class: SimpleGit::DiffOptions
- Inherits:
-
Object
- Object
- SimpleGit::DiffOptions
- Defined in:
- lib/simple_git/diff_options.rb
Instance Attribute Summary collapse
-
#ptr ⇒ Object
readonly
Returns the value of attribute ptr.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ DiffOptions
constructor
A new instance of DiffOptions.
Constructor Details
#initialize ⇒ DiffOptions
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
#ptr ⇒ Object (readonly)
Returns the value of attribute ptr.
3 4 5 |
# File 'lib/simple_git/diff_options.rb', line 3 def ptr @ptr end |