Class: Range
Overview
:nodoc:
Instance Method Summary collapse
-
#pretty_print(q) ⇒ Object
:nodoc:.
Instance Method Details
#pretty_print(q) ⇒ Object
:nodoc:
529 530 531 532 533 534 535 536 537 |
# File 'lib/pp.rb', line 529 def pretty_print(q) # :nodoc: begin_nil = self.begin == nil end_nil = self.end == nil q.pp self.begin if !begin_nil || end_nil q.breakable '' q.text(self.exclude_end? ? '...' : '..') q.breakable '' q.pp self.end if !end_nil || begin_nil end |