Class: Gitlab::Git::Patches::Patch
- Inherits:
-
Object
- Object
- Gitlab::Git::Patches::Patch
- Defined in:
- lib/gitlab/git/patches/patch.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content) ⇒ Patch
constructor
A new instance of Patch.
- #size ⇒ Object
Constructor Details
#initialize(content) ⇒ Patch
Returns a new instance of Patch.
9 10 11 |
# File 'lib/gitlab/git/patches/patch.rb', line 9 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/gitlab/git/patches/patch.rb', line 7 def content @content end |
Instance Method Details
#size ⇒ Object
13 14 15 |
# File 'lib/gitlab/git/patches/patch.rb', line 13 def size content.bytesize end |