Sha256: 248baf1ebd4ff5ef81d7e3fdb9a3b9448812d4f41f7a6770c42a2248a6c29c94

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  class MethodDefinition
    # @api private
    # @author darthjee
    #
    # Define an instance method from string
    class InstanceStringDefinition < StringDefinition
      private

      # @private
      #
      # String used when defining method
      #
      # Instance definition always returns +name+
      #
      # @return [String]
      def method_name
        name
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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