Class: V::Adapters::Git::Blob
- Inherits:
-
ObjectType
- Object
- ObjectType
- V::Adapters::Git::Blob
- Defined in:
- lib/v/adapters/git/object_types/blob.rb
Instance Method Summary collapse
Methods inherited from ObjectType
Instance Method Details
#[](object, *args) ⇒ Object
14 15 16 |
# File 'lib/v/adapters/git/object_types/blob.rb', line 14 def [](object, *args) object.content[*args] end |
#content(object) ⇒ Object
6 7 8 |
# File 'lib/v/adapters/git/object_types/blob.rb', line 6 def content(object) object.environment.show object.name, :pretty => :raw end |
#path(parent, basename) ⇒ Object
10 11 12 |
# File 'lib/v/adapters/git/object_types/blob.rb', line 10 def path(parent, basename) parent.path basename end |