サクサク読めて、アプリ限定の機能も多数!
地味に忘れがちなobj.class . n a m e
kiyo_hiko のブックマーク 2016/04/28 11:53
How do I get the name of a Ruby class?[ruby][class][tips][name]地味に忘れがちなobj.class . n a m e2016/04/28 11:53
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2016/04/28
How can I get the class name from an ActiveRecord object? I have: result = User.find(1) I tried: result.class # => User(id: integer, name: string ...) result.to_s # => #<User:0x3d07cdc>" I need onl...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
地味に忘れがちなobj.class . n a m e
kiyo_hiko のブックマーク 2016/04/28 11:53
このブックマークにはスターがありません。
最初のスターをつけてみよう!
How do I get the name of a Ruby class?
stackoverflow.com2016/04/28
How can I get the class name from an ActiveRecord object? I have: result = User.find(1) I tried: result.class # => User(id: integer, name: string ...) result.to_s # => #<User:0x3d07cdc>" I need onl...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /