Class: Leftovers::AST::HashNode

Inherits:
Node
  • Object
show all
Includes:
HasArguments
Defined in:
lib/leftovers/ast/hash_node.rb

Instance Method Summary collapse

Methods included from HasArguments

#kwargs, #positional_arguments

Methods inherited from Node

#as_arguments_list, #block_given?, #first, #initialize, #kwargs, #name, #parent, #parent=, #path, #positional_arguments, #privacy, #privacy=, #proc?, #receiver, #scalar?, #second, #sym?, #to_literal_s, #to_s, #to_scalar_value, #to_sym, #updated

Constructor Details

This class inherits a constructor from Leftovers::AST::Node

Instance Method Details

#argumentsObject



8
9
10
# File 'lib/leftovers/ast/hash_node.rb', line 8

def arguments
  @memo[:arguments] ||= [self]
end

#hash?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/leftovers/ast/hash_node.rb', line 12

def hash?
  true
end