lib/punk/framework/service.rb in punk-0.3.6 vs lib/punk/framework/service.rb in punk-0.4.1

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require 'active_support/string_inquirer' +require "active_support/string_inquirer" module PUNK class Service < Runnable include Loggable include Publishable @@ -32,12 +32,14 @@ def _state ActiveSupport::StringInquirer.new(@_state.to_s) end - def on_success; end + def on_success + end - def on_failure; end + def on_failure + end private def _init(**kwargs) @_state = :ready