Jump to content

Create an object/Native demonstration: Difference between revisions

→‎{{header|Ruby}}: {{works with|Ruby|1.9}} for KeyError
(→‎{{header|Ruby}}: Replace my three-year-old attempt with a simpler version. Remove confusing default_proc feature. Throw out old tests. Forget Ruby older than 1.9.)
(→‎{{header|Ruby}}: {{works with|Ruby|1.9}} for KeyError)
Line 514:
 
=={{header|Ruby}}==
{{works with|Ruby|1.9}}
<lang ruby># A FencedHash acts like a Hash, but with a fence around its keys.
# One may change its values, but not its keys. Any attempt to insert
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.