Class: Range

Inherits:
Object show all
Defined in:
lib/pp-colour/range.rb

Instance Method Summary collapse

Instance Method Details

#pretty_print(q) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/pp-colour/range.rb', line 2

def pretty_print(q)
  q.pp self.begin
  q.breakable ''
  q.text(self.exclude_end? ? '...'.green : '..'.green)
  q.breakable ''
  q.pp self.end
end