You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note above that you can access the values via the string, or symbol.
@@ -45,17 +45,17 @@ You can still access the original un-snaked camel keys.
45
45
And through them you can even use un-snaked camel methods.
46
46
47
47
```ruby
48
-
snake.key?('VeryFineHat') # => true
49
-
snake['VeryFineHat'] # => 'Feathers'
48
+
snake.key?("VeryFineHat") # => true
49
+
snake["VeryFineHat"] # => 'Feathers'
50
50
snake.VeryFineHat# => 'Feathers', PLEASE don't do this!!!
51
-
snake['VeryFineHat'] ='pop'# Please don't do this... you'll get a warning, and it works (for now), but no guarantees.
51
+
snake["VeryFineHat"] ="pop"# Please don't do this... you'll get a warning, and it works (for now), but no guarantees.
52
52
# WARN -- : You are setting a key that conflicts with a built-in method MySnakedHash#VeryFineHat defined in MySnakedHash. This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
53
53
# => "pop"
54
-
snake.very_fine_hat ='pop'# => 'pop', do this instead!!!
54
+
snake.very_fine_hat ="pop"# => 'pop', do this instead!!!
55
55
snake.very_fine_hat # => 'pop'
56
-
snake[:very_fine_hat] ='moose'# => 'moose', or do this instead!!!
56
+
snake[:very_fine_hat] ="moose"# => 'moose', or do this instead!!!
57
57
snake.very_fine_hat # => 'moose'
58
-
snake['very_fine_hat'] ='cheese'# => 'cheese', or do this instead!!!
58
+
snake["very_fine_hat"] ="cheese"# => 'cheese', or do this instead!!!
0 commit comments