Sha256: c9d6a40991517bc07c4e4c2c3277f8a950f67cc8669395fc52f604e55c83eeb3

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  class MethodDefinition
    # @api private
    # @author darthjee
    #
    # Define an class method from block
    class ClassBlockDefinition < BlockDefinition
      private

      # @private
      #
      # Method used to define a class method
      #
      # @return [Symbol] Always :define_singleton_method
      def method_definer
        :define_singleton_method
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinclair-1.4.2 lib/sinclair/method_definition/class_block_definition.rb