Sha256: 72dc5cc687e48b68e05b499e63c053f620416e9e871390bda15a7d7bb21eeefb

Contents?: true

Size: 508 Bytes

Versions: 8

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module Composable
  module Service
    class Command
      include Core::AttributeDSL
      include Core::ComposableDSL
      include Core::Callbacks

      class << self
        def inherited(subclass)
          super
          subclass.prepend(Core::Command)
        end
      end

      def call
        return unless valid?

        run_callbacks :save do
          save_composables { save }
        end
      end

      private

      def save
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
composable-service-0.0.12 lib/composable/service/command.rb
composable-service-0.0.11 lib/composable/service/command.rb
composable-service-0.0.10 lib/composable/service/command.rb
composable-service-0.0.9 lib/composable/service/command.rb
composable-service-0.0.8 lib/composable/service/command.rb
composable-service-0.0.7 lib/composable/service/command.rb
composable-service-0.0.6 lib/composable/service/command.rb
composable-service-0.0.5 lib/composable/service/command.rb