mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removing 1.8 reference
This commit is contained in:
parent
007c3d8bcb
commit
d8e84738ea
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
class Object
|
||||
# Returns a hash that maps instance variable names without "@" to their
|
||||
# corresponding values. Keys are strings both in Ruby 1.8 and 1.9.
|
||||
# corresponding values. Keys are strings.
|
||||
#
|
||||
# class C
|
||||
# def initialize(x, y)
|
||||
|
@ -13,8 +13,7 @@ class Object
|
|||
Hash[instance_variables.map { |name| [name[1..-1], instance_variable_get(name)] }]
|
||||
end
|
||||
|
||||
# Returns an array of instance variable names including "@". They are strings
|
||||
# both in Ruby 1.8 and 1.9.
|
||||
# Returns an array of instance variable names including "@". They are strings.
|
||||
#
|
||||
# class C
|
||||
# def initialize(x, y)
|
||||
|
|
Loading…
Reference in a new issue