Skip to content

Instantly share code, notes, and snippets.

@ohnishiakira
Created January 16, 2014 03:38
Show Gist options
  • Save ohnishiakira/8449387 to your computer and use it in GitHub Desktop.
Save ohnishiakira/8449387 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# coding: utf-8
class Hoge
FUGA = "fuga"
end
hash = {hoge: Hoge}
p hash[:hoge]::FUGA #=> "fuga"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment