Class: LibRubyParser::Nodes::Defined
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Defined
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a defined?(foo)
expression
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc?
readonly
Location of the open parenthesis.
-
#end_l ⇒ Loc?
readonly
Location of the closing parenthesis.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#keyword_l ⇒ Loc
readonly
Location of the
defined?
keyword. -
#value ⇒ Node
readonly
Value given to
defined?
.
Instance Attribute Details
#begin_l ⇒ Loc? (readonly)
Location of the open parenthesis
defined?(foo)
~
None
if there are no parentheses
1092 1093 1094 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1092 def begin_l @begin_l end |
#end_l ⇒ Loc? (readonly)
Location of the closing parenthesis
defined?(foo)
~
None
if there are no parentheses
1103 1104 1105 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1103 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
defined?(foo)
~~~~~~~~~~~~~
1112 1113 1114 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1112 def expression_l @expression_l end |
#keyword_l ⇒ Loc (readonly)
Location of the defined?
keyword
defined?(foo)
~~~~~~~~
1081 1082 1083 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1081 def keyword_l @keyword_l end |
#value ⇒ Node (readonly)
Value given to defined?
1072 1073 1074 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1072 def value @value end |