instance method
instance_variable_defined?
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
instance_variable_defined?(variable)
No documentation comment.
Parameters
-
variablereq
Source
# File activesupport/lib/active_support/core_ext/object/instance_variables.rb, line 4
def instance_variable_defined?(variable)
instance_variables.include?(variable.to_s)
end
Defined in activesupport/lib/active_support/core_ext/object/instance_variables.rb line 4
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Object