class Fast::Any
Matches any of the internal expressions. Works like a OR condition. @example Matchig int or float
Fast.expression("{int float}")
Public Instance Methods
match?(node)
click to toggle source
# File lib/fast.rb, line 637 def match?(node) token.any? { |expression| Fast.match?(expression, node) } end
to_s()
click to toggle source
# File lib/fast.rb, line 641 def to_s "any[#{token.map(&:to_s).join(', ')}]" end