class TwitterCldr::Utils::RegexpAst::Node

Attributes

expressions[R]
quantifier[R]

Public Class Methods

from_parser_node(node, expressions) click to toggle source
# File lib/twitter_cldr/utils/regexp_ast.rb, line 32
def self.from_parser_node(node, expressions)
  new(expressions, Quantifier.from_parser_node(node))
end
new(expressions, quantifier) click to toggle source
# File lib/twitter_cldr/utils/regexp_ast.rb, line 23
def initialize(expressions, quantifier)
  @expressions = expressions
  @quantifier = quantifier
end

Public Instance Methods

quantified?() click to toggle source
# File lib/twitter_cldr/utils/regexp_ast.rb, line 28
def quantified?
  !!quantifier
end