Sha256: a1c1bbe94752071c3d9b15755057f69817c6602da943124fccb8575439dbf279

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  class MethodDefinition
    # @api private
    # @author darthjee
    #
    # Define a method from string
    class ClassStringDefinition < StringDefinition
      private

      # @private
      #
      # String used when defining method
      #
      # Class definition appends +self.+ to method name
      #
      # @return [String]
      def method_name
        "self.#{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/class_string_definition.rb