Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/edtf/extensions.rb
Instance Method Summary collapse
Instance Method Details
#edtf ⇒ Object
4 5 6 7 8 9 |
# File 'lib/edtf/extensions.rb', line 4 def edtf [ self.begin.respond_to?(:edtf) ? self.begin.edtf : self.begin.to_s, self.end.respond_to?(:edtf) ? self.end.edtf : self.end.to_s ].join(exclude_end? ? '...' : '..') end |