Class: Gitmain::TextBlob

Inherits:
Blob
  • Object
show all
Defined in:
lib/gitmain/text_blob.rb

Instance Attribute Summary

Attributes inherited from Blob

#id, #name, #path, #repository

Instance Method Summary collapse

Methods inherited from Blob

#changed_attributes, #content, #content=, #file_name, #initialize

Constructor Details

This class inherits a constructor from Gitmain::Blob

Instance Method Details

#textObject



5
6
7
# File 'lib/gitmain/text_blob.rb', line 5

def text
  @text ||= _blob&.text
end

#text=(value) ⇒ Object



9
10
11
12
# File 'lib/gitmain/text_blob.rb', line 9

def text=(value)
  changed_attributes[:text] = text
  @text = value
end