Class: Rubycop::Analyzer::Ruby::Hash

Inherits:
Node
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/hash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(assocs) ⇒ Hash

Returns a new instance of Hash.



5
6
7
# File 'lib/rubycop/analyzer/ruby/hash.rb', line 5

def initialize(assocs)
  @assocs = assocs
end

Instance Attribute Details

#assocsObject (readonly)

Returns the value of attribute assocs.



9
10
11
# File 'lib/rubycop/analyzer/ruby/hash.rb', line 9

def assocs
  @assocs
end