Class: RubyCop::Ruby::Assoc
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Assoc
constructor
A new instance of Assoc.
Methods inherited from Node
Constructor Details
#initialize(key, value) ⇒ Assoc
Returns a new instance of Assoc.
4 5 6 7 |
# File 'lib/ruby_cop/ruby/assoc.rb', line 4 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
9 10 11 |
# File 'lib/ruby_cop/ruby/assoc.rb', line 9 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'lib/ruby_cop/ruby/assoc.rb', line 10 def value @value end |