Sha256: 9c37e7af9a4c55848677ae6b3e5980c44813faac7427fa9dd73b328cc6f4fec2
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 Bytes
Contents
class Dog #tag::init[] def initialize breed @breed = breed end #end::init[] #tag::bark[] def bark #tag::bark-beagle[] if @breed == 'beagle' 'woof woof woof woof woof' #end::bark-beagle[] #tag::bark-other[] else 'woof woof' #end::bark-other[] #tag::bark-all[] end #end::bark-all[] end #end::bark[] end
Version data entries
6 entries across 6 versions & 1 rubygems