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

Version Path
baccigalupi-aqua-0.1.3 spec/object/object_fixtures/gerbilmiester.rb
baccigalupi-aqua-0.1.4 spec/object/object_fixtures/gerbilmiester.rb
baccigalupi-aqua-0.1.5 spec/object/object_fixtures/gerbilmiester.rb
aqua-0.2.0 spec/object/object_fixtures/gerbilmiester.rb
aqua-0.1.6 spec/object/object_fixtures/gerbilmiester.rb