lib/ykutils/stextx.rb in ykutils-0.1.7 vs lib/ykutils/stextx.rb in ykutils-0.1.8
- old
+ new
@@ -4,29 +4,29 @@
module Ykutils
class StructuredTextForX < StructuredText
include DebugUtils
- def initialize(debug = false)
+ def initialize(debug: false)
super()
debug_utils_init
- set_debug(debug)
+ debug(debug)
ends
+ end
- def analyze(line_ary, _fname = nil)
- lines = XLines.new(line_ary)
- # lines.output_f( fname )
+ def analyze(line_ary, _fname = nil)
+ lines = XLines.new(line_ary)
+ # lines.output_f( fname )
- analyze_sub(lines)
- end
+ analyze_sub(lines)
+ end
- def analyze_sub(lines)
- puts_current_method
+ def analyze_sub(lines)
+ puts_current_method
- while (line = lines.get_line)
- # p line
- end
+ while lines.get_line
+ # p line
end
end
end
end