Skip to content

Commit

Permalink
Scooch
Browse files Browse the repository at this point in the history
  • Loading branch information
drexed committed Oct 15, 2024
1 parent d1104ae commit 790ab7a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/lite/command/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def self.inherited(base)
return unless Lite::Command.configuration.raise_dynamic_faults

base.class_eval <<-RUBY, __FILE__, __LINE__ + 1
# eg: Users::ResetPassword::Fault < Lite::Command::Fault
#{base}::Fault = Class.new(Lite::Command::Fault)
# eg: Users::ResetPassword::Noop < Users::ResetPassword::Fault
#{base}::Noop = Class.new(#{base}::Fault)
#{base}::Invalid = Class.new(#{base}::Fault)
#{base}::Failure = Class.new(#{base}::Fault)
#{base}::Error = Class.new(#{base}::Fault)
# eg: Users::ResetPassword::Fault < Lite::Command::Fault
#{base}::Fault = Class.new(Lite::Command::Fault)
# eg: Users::ResetPassword::Noop < Users::ResetPassword::Fault
#{base}::Noop = Class.new(#{base}::Fault)
#{base}::Invalid = Class.new(#{base}::Fault)
#{base}::Failure = Class.new(#{base}::Fault)
#{base}::Error = Class.new(#{base}::Fault)
RUBY
end

Expand Down

0 comments on commit 790ab7a

Please sign in to comment.