ruby -e “p Object.new.instance_variable_defined?(:’@’)” # => false
ruby -e “p Object.new.instance_variable_defined?(’@’)” # => instance_variable_defined?':@’ is not allowed as an instance variable
name (NameError)
ruby -e “p Object.new.instance_variable_get(:’@’)” # => nil
ruby -e “p Object.new.instance_variable_get(’@’)” # => instance_variable_get':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_set(:’@’, nil)” # => nil
ruby -e “p Object.new.instance_variable_set(’@’, nil)” # => instance_variable_set':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_defined?(:’@’)” # => false
ruby -e “p Object.new.instance_variable_defined?(’@’)” # => instance_variable_defined?':@’ is not allowed as an instance variable
name (NameError)
ruby -e “p Object.new.instance_variable_get(:’@’)” # => nil
ruby -e “p Object.new.instance_variable_get(’@’)” # => instance_variable_get':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_set(:’@’, nil)” # => nil
ruby -e “p Object.new.instance_variable_set(’@’, nil)” # => instance_variable_set':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_defined?(:’@’)” # => false
ruby -e “p Object.new.instance_variable_defined?(’@’)” # => instance_variable_defined?':@’ is not allowed as an instance variable
name (NameError)
ruby -e “p Object.new.instance_variable_get(:’@’)” # => nil
ruby -e “p Object.new.instance_variable_get(’@’)” # => instance_variable_get':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_set(:’@’, nil)” # => nil
ruby -e “p Object.new.instance_variable_set(’@’, nil)” # => instance_variable_set':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_defined?(:’@’)” # => false
ruby -e “p Object.new.instance_variable_defined?(’@’)” # => instance_variable_defined?':@’ is not allowed as an instance variable
name (NameError)
ruby -e “p Object.new.instance_variable_get(:’@’)” # => nil
ruby -e “p Object.new.instance_variable_get(’@’)” # => instance_variable_get':@’ is not allowed as an instance variable name
(NameError)
ruby -e “p Object.new.instance_variable_set(:’@’, nil)” # => nil
ruby -e “p Object.new.instance_variable_set(’@’, nil)” # => instance_variable_set':@’ is not allowed as an instance variable name
(NameError)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.