Gistlib Logo

gistlib

other ruby categories

object-oriented-programming code snippets in ruby

add a method to a subclass in ruby
even shorter way to do this ? `helloworld = object.new; def helloworld.hello = "hello, world!"` in ruby
why is there a need to have class methods? in ruby

gistlibby LogSnag