class Object
Constants
- AND
- ASSIGN
- DUMMY
- EQUAL
- GT
- INT
- MOD
- ONE
- SUB
- T42
- XOR
- ZERO
Public Instance Methods
show_lines(str,upto=nil)
click to toggle source
# File lib/crokus/parser.rb, line 1108 def show_lines str,upto=nil lines=str.split(/\n/) upto=upto || lines.size lines[0..upto].each_with_index do |line,idx| puts "#{(idx+1).to_s.ljust(5)}|#{line}" end end