15 Zeilen
186 B
Ruby
15 Zeilen
186 B
Ruby
class CustomWizard::ActionResult
|
|
attr_accessor :success, :handler
|
|
|
|
def initialize
|
|
@success = false
|
|
end
|
|
|
|
def success?
|
|
@success
|
|
end
|
|
|
|
def failed?
|
|
!success
|
|
end
|
|
end
|