Class: Nwiki::Core::Entry
- Inherits:
-
Object
- Object
- Nwiki::Core::Entry
- Extended by:
- Forwardable
- Defined in:
- lib/nwiki/core/git_access.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, blob_object) ⇒ Entry
constructor
A new instance of Entry.
- #text ⇒ Object
Constructor Details
#initialize(path, blob_object) ⇒ Entry
Returns a new instance of Entry.
11 12 13 14 |
# File 'lib/nwiki/core/git_access.rb', line 11 def initialize path, blob_object @path = path @blob_object = blob_object end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/nwiki/core/git_access.rb', line 9 def path @path end |
Instance Method Details
#text ⇒ Object
16 17 18 |
# File 'lib/nwiki/core/git_access.rb', line 16 def text @blob_object.text.force_encoding('UTF-8') end |