Sha256: 32afb082619a2562e28fc9922c0816245c5a87d9374828a3f02366e5779c5b6a
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
module EndState class Guard attr_reader :object, :state, :params def initialize(object, state, params) @object = object @state = state @params = params end def allowed? will_allow?.tap do |result| failed unless result passed if result end end def will_allow? false end def passed end def failed end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
end_state-0.1.0 | lib/end_state/guard.rb |
end_state-0.0.2 | lib/end_state/guard.rb |
end_state-0.0.1 | lib/end_state/guard.rb |