lib/dentaku/token.rb in dentaku-1.0.0 vs lib/dentaku/token.rb in dentaku-1.1.0

- old
+ new

@@ -6,9 +6,13 @@ @category = category @value = value @raw_value = raw_value end + def to_s + raw_value || value + end + def length raw_value.to_s.length end def is?(c)