Class: Regexp::Expression::Root
- Inherits:
-
Subexpression
- Object
- Base
- Subexpression
- Regexp::Expression::Root
- Defined in:
- lib/regexp_parser/expression/classes/root.rb
Instance Attribute Summary
Attributes inherited from Subexpression
Attributes inherited from Base
#conditional_level, #level, #options, #quantifier, #set_level, #text, #token, #ts, #type
Instance Method Summary collapse
- #case_insensitive? ⇒ Boolean (also: #i?, #ignore_case?)
- #free_spacing? ⇒ Boolean (also: #x?, #extended?)
-
#initialize ⇒ Root
constructor
A new instance of Root.
- #multiline? ⇒ Boolean (also: #m?)
Methods inherited from Subexpression
#<<, #[], #all?, #clone, #each, #each_expression, #each_with_index, #empty?, #first, #insert, #last, #length, #map, #strfregexp_tree, #te, #to_h, #to_s, #traverse, #ts
Methods inherited from Base
#ascii_classes?, #clone, #coded_offset, #default_classes?, #full_length, #greedy?, #is?, #match, #matches?, #offset, #one_of?, #possessive?, #quantified?, #quantify, #quantity, #reluctant?, #starts_at, #strfregexp, #terminal?, #to_h, #to_re, #to_s, #type?, #unicode_classes?
Constructor Details
Instance Method Details
#case_insensitive? ⇒ Boolean Also known as: i?, ignore_case?
13 14 15 |
# File 'lib/regexp_parser/expression/classes/root.rb', line 13 def case_insensitive? @expressions[0].i? end |
#free_spacing? ⇒ Boolean Also known as: x?, extended?
19 20 21 |
# File 'lib/regexp_parser/expression/classes/root.rb', line 19 def free_spacing? @expressions[0].x? end |
#multiline? ⇒ Boolean Also known as: m?
8 9 10 |
# File 'lib/regexp_parser/expression/classes/root.rb', line 8 def multiline? @expressions[0].m? end |