Class: Refract::MatchLastLineNode
- Defined in:
- lib/refract/nodes/match_last_line_node.rb
Instance Attribute Summary collapse
-
#extended ⇒ Object
Returns the value of attribute extended.
-
#ignore_case ⇒ Object
Returns the value of attribute ignore_case.
-
#multi_line ⇒ Object
Returns the value of attribute multi_line.
-
#once ⇒ Object
Returns the value of attribute once.
-
#unescaped ⇒ Object
Returns the value of attribute unescaped.
Instance Method Summary collapse
-
#initialize(prism_node: nil, unescaped:, ignore_case:, multi_line:, extended:, once:) ⇒ MatchLastLineNode
constructor
A new instance of MatchLastLineNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, unescaped:, ignore_case:, multi_line:, extended:, once:) ⇒ MatchLastLineNode
Returns a new instance of MatchLastLineNode.
5 6 7 8 9 10 11 12 13 |
# File 'lib/refract/nodes/match_last_line_node.rb', line 5 def initialize(prism_node: nil, unescaped:, ignore_case:, multi_line:, extended:, once:) @prism_node = prism_node => Prism::Node | nil @unescaped = unescaped @ignore_case = ignore_case @multi_line = multi_line @extended = extended @once = once freeze end |
Instance Attribute Details
#extended ⇒ Object
Returns the value of attribute extended.
15 16 17 |
# File 'lib/refract/nodes/match_last_line_node.rb', line 15 def extended @extended end |
#ignore_case ⇒ Object
Returns the value of attribute ignore_case.
15 16 17 |
# File 'lib/refract/nodes/match_last_line_node.rb', line 15 def ignore_case @ignore_case end |
#multi_line ⇒ Object
Returns the value of attribute multi_line.
15 16 17 |
# File 'lib/refract/nodes/match_last_line_node.rb', line 15 def multi_line @multi_line end |
#once ⇒ Object
Returns the value of attribute once.
15 16 17 |
# File 'lib/refract/nodes/match_last_line_node.rb', line 15 def once @once end |
#unescaped ⇒ Object
Returns the value of attribute unescaped.
15 16 17 |
# File 'lib/refract/nodes/match_last_line_node.rb', line 15 def unescaped @unescaped end |