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
Hash keys with spaces or characters that could normally not be used for method calls (e.g. <code>()[]*</code>) will not be immediately available on the OpenStruct object as a method for retrieval or assignment, but can still be reached through the Object#send method.
31
31
32
-
```
32
+
```ruby
33
33
measurements =OpenStruct.new("length (in inches)" => 24)
34
34
measurements.send("length (in inches)") # => 24
35
35
@@ -41,7 +41,7 @@ Hash keys with spaces or characters that could normally not be used for method c
41
41
42
42
Removing the presence of an attribute requires the execution of the delete_field method as setting the property value to +nil+ will not remove the attribute.
0 commit comments