Class: IRB::Irb
- Inherits:
-
Object
- Object
- IRB::Irb
- Defined in:
- lib/svmlab-irb.rb
Instance Method Summary collapse
Instance Method Details
#output_value ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/svmlab-irb.rb', line 84 def output_value text = if @context.inspect? sprintf @context.return_format, @context.last_value.inspect else sprintf @context.return_format, @context.last_value end max = @context.max_output_size if text.size < max puts text else puts text[0..max-1] + "..." + text[-2..-1] end end |