Sha256: 56375494e8ec0e9b74ccc63a2b37dfedd1fc0fc3463c11f38e3d8c5189350dcb
Contents?: true
Size: 498 Bytes
Versions: 3
Compression:
Stored size: 498 Bytes
Contents
module Degica class Matz < Person def name :matz end def quote Faker::Matz.quote end def give(object = nil) super.tap do if object.name == :ruby puts "He thanks you for bringing him the ruby." Game.objects.actor.award(20) end end end def description desc = [] desc << "He's smiling at you. You smile back." desc << "He is holding a ruby." if holding?(:ruby) desc end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
degica-1.0.2 | lib/degica/objects/people/matz.rb |
degica-1.0.1 | lib/degica/objects/people/matz.rb |
degica-1.0.0 | lib/degica/objects/people/matz.rb |