class TwitterCldr::Utils::RegexpAst::Literal

Attributes

text[R]

Public Class Methods

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