Class: IRB::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/svmlab-irb.rb

Overview

Stian Haklev / Joel VanderWerf To reduce lengthy output

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Context

Returns a new instance of Context.



77
78
79
80
# File 'lib/svmlab-irb.rb', line 77

def initialize(*args)
  initialize_before_max_output_size(*args)
  @max_output_size = IRB.conf[:MAX_OUTPUT_SIZE] || 70
end

Instance Attribute Details

#max_output_sizeObject

Returns the value of attribute max_output_size.



74
75
76
# File 'lib/svmlab-irb.rb', line 74

def max_output_size
  @max_output_size
end

Instance Method Details

#initialize_before_max_output_sizeObject



76
# File 'lib/svmlab-irb.rb', line 76

alias initialize_before_max_output_size initialize