Class: RubyCop::Ruby::Hash
Instance Attribute Summary collapse
-
#assocs ⇒ Object
readonly
Returns the value of attribute assocs.
Instance Method Summary collapse
-
#initialize(assocs) ⇒ Hash
constructor
A new instance of Hash.
Methods inherited from Node
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
#assocs ⇒ Object (readonly)
Returns the value of attribute assocs.
8 9 10 |
# File 'lib/ruby_cop/ruby/hash.rb', line 8 def assocs @assocs end |