Class: V::Adapters::Git::ObjectType
- Inherits:
-
Object
- Object
- V::Adapters::Git::ObjectType
- Includes:
- Singleton
- Defined in:
- lib/v/adapters/git/object.rb
Class Method Summary collapse
-
.===(object) ⇒ Object
See ObjectType#===.
Instance Method Summary collapse
-
#===(object) ⇒ Object
Returns true if other is a Git::Object and has the same type, false otherwise.
- #content(object) ⇒ Object
- #to_s(object = nil) ⇒ Object
Class Method Details
.===(object) ⇒ Object
See ObjectType#===.
14 15 16 |
# File 'lib/v/adapters/git/object.rb', line 14 def self.===(object) instance === object end |
Instance Method Details
#===(object) ⇒ Object
Returns true if other is a Git::Object and has the same type, false otherwise.
9 10 11 |
# File 'lib/v/adapters/git/object.rb', line 9 def ===(object) object.is_a? Git::Object and object.type == self end |
#content(object) ⇒ Object
18 19 20 |
# File 'lib/v/adapters/git/object.rb', line 18 def content(object) raise NotImplementedError end |
#to_s(object = nil) ⇒ Object
21 22 23 |
# File 'lib/v/adapters/git/object.rb', line 21 def to_s(object = nil) object ? object.name : self.class.name end |