Sha256: d2a3257270fec3c7d069191f1f6e25caa316fae7a2de35e5b3256969da0d9b36

Contents?: true

Size: 763 Bytes

Versions: 4

Compression:

Stored size: 763 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Feature
    module Plugins
      module CanHaveEntries
        module Concern
          include Support::Concern

          instance_methods do
            ##
            # @return [Object] Can be any type.
            #
            def entry(...)
              public_send(...)
            end
          end

          class_methods do
            ##
            # @param names [Array<String, Symbol>]
            # @param body [Proc, nil]
            # @return [Array<String, Symbol>]
            #
            def entry(*names, &body)
              Commands::DefineEntries.call(feature_class: self, names: names, body: body)
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/feature/plugins/can_have_entries/concern.rb
convenient_service-0.19.0 lib/convenient_service/feature/plugins/can_have_entries/concern.rb
convenient_service-0.18.0 lib/convenient_service/feature/plugins/can_have_entries/concern.rb
convenient_service-0.17.0 lib/convenient_service/feature/plugins/can_have_entries/concern.rb