class EndState::Guard
Attributes
object[R]
params[R]
state[R]
Public Class Methods
new(object, state, params)
click to toggle source
# File lib/end_state/guard.rb, line 6 def initialize(object, state, params) @object = object @state = state @params = params end
Public Instance Methods
allowed?()
click to toggle source
# File lib/end_state/guard.rb, line 12 def allowed? will_allow?.tap do |result| failed unless result passed if result end end
failed()
click to toggle source
# File lib/end_state/guard.rb, line 26 def failed end
passed()
click to toggle source
# File lib/end_state/guard.rb, line 23 def passed end
will_allow?()
click to toggle source
# File lib/end_state/guard.rb, line 19 def will_allow? false end