1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add another example, this time with a symbol.

This commit is contained in:
jbranchaud
2015-09-23 20:55:04 -05:00
parent 7e2935f0a8
commit 8ce7cba63d

View File

@@ -26,3 +26,10 @@ You can even be more specific if you'd like
> Math.const_get("PI")
#=> 3.141592653589793
```
Symbols are valid as well
```ruby
> Math.const_get(:PI)
#=> 3.141592653589793
```