Sha256: 0ed726fc2610ccefb0b862afe918fc00cede17136742a73b3ef60c51fe5b078b
Contents?: true
Size: 734 Bytes
Versions: 16
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true class Sinclair class MethodBuilder # @api private # @author darthjee # # Class responsible to build methods from # block definitions # # @see MethodDefinition::BlockDefinition class BlockMethodBuilder < Base # Builds the method # # @return (see Base#build) def build klass.send(method_definition, name, method_block) end private delegate :name, :method_block, to: :definition # @private # # name of the method used to define a new method on class # # @return [Symbol] def method_definition instance? ? :define_method : :define_singleton_method end end end end
Version data entries
16 entries across 16 versions & 1 rubygems