Class: Leftovers::AST::HashNode
- 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
#arguments ⇒ Object
8 9 10 |
# File 'lib/leftovers/ast/hash_node.rb', line 8 def arguments @memo[:arguments] ||= [self] end |
#hash? ⇒ Boolean
12 13 14 |
# File 'lib/leftovers/ast/hash_node.rb', line 12 def hash? true end |