Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
16 Zeilen
225 B
Ruby
16 Zeilen
225 B
Ruby
# frozen_string_literal: true
|
|
class CustomWizard::ActionResult
|
|
attr_accessor :success, :handler, :output
|
|
|
|
def initialize
|
|
@success = false
|
|
end
|
|
|
|
def success?
|
|
@success
|
|
end
|
|
|
|
def failed?
|
|
!success
|
|
end
|
|
end
|