Sha256: d80e5dc64e1f1a0695027a9e7d72b12b1c9b615e9e3d8aaa96b2920e3f4609c8
Contents?: true
Size: 312 Bytes
Versions: 2
Compression:
Stored size: 312 Bytes
Contents
class Sheath attr_reader :dagger def initialize(dagger) @dagger = dagger end def insert(dagger) raise "There is already a dagger in here" if @dagger @dagger = dagger end def draw raise "Dagger is nowhere to be found" unless @dagger d = @dagger @dagger = nil d end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
caricature-0.7.7 | spec/fixtures/sheath.rb |
caricature-0.7.6 | spec/fixtures/sheath.rb |