Class: TwitterCldr::Utils::RegexpAst::CharacterSet
- Defined in:
- lib/twitter_cldr/utils/regexp_ast.rb
Instance Attribute Summary collapse
-
#members ⇒ Object
readonly
Returns the value of attribute members.
-
#negated ⇒ Object
(also: #negated?)
readonly
Returns the value of attribute negated.
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(expressions, quantifier, members, negated) ⇒ CharacterSet
constructor
A new instance of CharacterSet.
Methods inherited from Node
Constructor Details
#initialize(expressions, quantifier, members, negated) ⇒ CharacterSet
Returns a new instance of CharacterSet.
41 42 43 44 |
# File 'lib/twitter_cldr/utils/regexp_ast.rb', line 41 def initialize(expressions, quantifier, members, negated) @members = members; @negated = negated super(expressions, quantifier) end |
Instance Attribute Details
#members ⇒ Object (readonly)
Returns the value of attribute members.
38 39 40 |
# File 'lib/twitter_cldr/utils/regexp_ast.rb', line 38 def members @members end |
#negated ⇒ Object (readonly) Also known as: negated?
Returns the value of attribute negated.
38 39 40 |
# File 'lib/twitter_cldr/utils/regexp_ast.rb', line 38 def negated @negated end |
Class Method Details
.from_parser_node(node, expressions) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/twitter_cldr/utils/regexp_ast.rb', line 46 def self.from_parser_node(node, expressions) new( expressions, Quantifier.from_parser_node(node), fix_members(node.members), node.negative? ) end |