Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

2014-10-23から1日間の記事一覧

hashieでHash型を便利に拡張する(その1_導入編)

hashieというgemをつかうと、Hash型を拡張して色々便利な事ができます。 mash = Hashie::Mash.new #=> {} mash.length #=> 0 mash.name #=> nil mash.name? #=> false mash.name = :shuzo_kino #=> :shuzo_kino mash.name #=> :shuzo_kino こういうモノはデ…