Class: LibRubyParser::Nodes::MatchPatternP
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::MatchPatternP
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a one-line pattern matching that never throws but returns true/false (i.e. foo in pattern
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#operator_l ⇒ Loc
readonly
Location of the
in
operator. -
#pattern ⇒ Node
readonly
Pattern that is used for matching.
-
#value ⇒ Node
readonly
Value that is used for matching.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
foo in pattern
~~~~~~~~~~~~~~
2765 2766 2767 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2765 def expression_l @expression_l end |
#operator_l ⇒ Loc (readonly)
Location of the in
operator
foo in pattern
~~
2756 2757 2758 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2756 def operator_l @operator_l end |
#pattern ⇒ Node (readonly)
Pattern that is used for matching
2747 2748 2749 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2747 def pattern @pattern end |
#value ⇒ Node (readonly)
Value that is used for matching
2743 2744 2745 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2743 def value @value end |