Class: RubyCop::Ruby::Defined
- Defined in:
- lib/ruby_cop/ruby/definitions.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(expression) ⇒ Defined
constructor
A new instance of Defined.
Methods inherited from Node
Constructor Details
#initialize(expression) ⇒ Defined
Returns a new instance of Defined.
18 19 20 |
# File 'lib/ruby_cop/ruby/definitions.rb', line 18 def initialize(expression) @expression = expression end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
22 23 24 |
# File 'lib/ruby_cop/ruby/definitions.rb', line 22 def expression @expression end |