examples/general/SRL/lib/regex/char_range.rb in rley-0.5.11 vs examples/general/SRL/lib/regex/char_range.rb in rley-0.5.12
- old
+ new
@@ -24,14 +24,16 @@
end
# Return the upper bound of the range.
def upper()
return children.last
- end
+ end
+ protected
+
# Conversion method re-definition.
# Purpose: Return the String representation of the concatented expressions.
- def to_str()
+ def text_repr()
result = lower.to_str() + '-' + upper.to_str()
return result
end
\ No newline at end of file