Class: DEBUGGER__::LimitedPP
| Relationships & Source Files | |
| Inherits: | Object | 
| Defined in: | lib/debug/session.rb | 
Class Method Summary
- .new(max) ⇒ LimitedPP constructor
- .pp(obj, max = 80)
Instance Attribute Summary
- #buf readonly
Instance Method Summary
Constructor Details
    .new(max)  ⇒ LimitedPP 
  
# File 'lib/debug/session.rb', line 2146
def initialize max @max = max @cnt = 0 @buf = String.new end
Class Method Details
.pp(obj, max = 80)
[ GitHub ]Instance Attribute Details
#buf (readonly)
[ GitHub ]# File 'lib/debug/session.rb', line 2144
attr_reader :buf
Instance Method Details
#<<(other)
[ GitHub ]# File 'lib/debug/session.rb', line 2152
def <<(other) @buf << other if @buf.size >= @max @buf = @buf[0..@max] + '...' throw self end end