Sha256: 3b8892d41c794a2c429cf2d5f14a6f1ffc7902dbfc10c8236089500e0a4af430
Contents?: true
Size: 363 Bytes
Versions: 5
Compression:
Stored size: 363 Bytes
Contents
class Gerbilmiester aquatic :embed => [:gerbil, :bacon] # saved state instance variable def gerbil @gerbil ||= true end # not an instance method with saved state, # but we should be able to stub this. def bacon 'chunky' end def herd gerbil ? 'Yah, yah, little gerbil' : 'Nothing to herd here, move along!' end end
Version data entries
5 entries across 5 versions & 2 rubygems