Class: Leftovers::AST::NilNode
- Inherits:
-
Node
- Object
- Parser::AST::Node
- Node
- Leftovers::AST::NilNode
show all
- Defined in:
- lib/leftovers/ast/nil_node.rb
Instance Method Summary
collapse
Methods inherited from Node
#arguments, #as_arguments_list, #block_given?, #first, #hash?, #initialize, #kwargs, #name, #parent, #parent=, #path, #positional_arguments, #privacy, #privacy=, #proc?, #receiver, #second, #sym?, #to_literal_s, #updated
Instance Method Details
#scalar? ⇒ Boolean
10
11
12
|
# File 'lib/leftovers/ast/nil_node.rb', line 10
def scalar?
true
end
|
#to_s ⇒ Object
14
15
16
|
# File 'lib/leftovers/ast/nil_node.rb', line 14
def to_s
''
end
|
#to_scalar_value ⇒ Object
6
7
8
|
# File 'lib/leftovers/ast/nil_node.rb', line 6
def to_scalar_value
nil
end
|
#to_sym ⇒ Object
18
19
20
|
# File 'lib/leftovers/ast/nil_node.rb', line 18
def to_sym
:nil
end
|