examples/general/SRL/lib/regex/alternation.rb in rley-0.5.11 vs examples/general/SRL/lib/regex/alternation.rb in rley-0.5.12

- old
+ new

@@ -11,13 +11,14 @@ # Constructor. def initialize(*theChildren) super(theChildren) end -public + protected + # Conversion method re-definition. # Purpose: Return the String representation of the concatented expressions. - def to_str() + def text_repr() result_children = children.map { |aChild| aChild.to_str() } result = '(?:' + result_children.join('|') + ')' return result end \ No newline at end of file