Sha256: 34a4e543cd93ad9dc40b7af875f3b020a3f9104e7ad73dacca35e47294365a00
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
class SubordinateDead < Celluloid::Error; end class Subordinate include Celluloid attr_reader :state def initialize(state) @state = state end def crack_the_whip case @state when :idle @state = :working else raise SubordinateDead, "the spec purposely crashed me :(" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
celluloid-0.18.0 | spec/support/examples/subordinate_class.rb |
celluloid-0.18.0.pre2 | spec/support/examples/subordinate_class.rb |