lib/dentaku/token.rb in dentaku-2.0.11 vs lib/dentaku/token.rb in dentaku-3.0.0
- old
+ new
@@ -14,9 +14,13 @@
def length
raw_value.to_s.length
end
+ def empty?
+ length.zero?
+ end
+
def grouping?
is?(:grouping)
end
def is?(c)