Class: RubyCop::Ruby::Hash

Inherits:
Node
  • Object
show all
Defined in:
lib/ruby_cop/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.



4
5
6
# File 'lib/ruby_cop/ruby/hash.rb', line 4

def initialize(assocs)
  @assocs = assocs
end

Instance Attribute Details

#assocsObject (readonly)

Returns the value of attribute assocs.



8
9
10
# File 'lib/ruby_cop/ruby/hash.rb', line 8

def assocs
  @assocs
end