Class: Range

Inherits:
Object
  • Object
show all
Defined in:
lib/edtf/extensions.rb

Instance Method Summary collapse

Instance Method Details

#edtfObject



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