Sha256: 7362dad68bc35348fb102752ece4b319d414b3c9ef22cec2fc55e9680b67132a

Contents?: true

Size: 515 Bytes

Versions: 15

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  class MethodBuilder
    # @api private
    # @author darthjee
    #
    # Class responsible to build methods from
    # string definitions
    #
    # @see MethodDefinition::StringDefinition
    class StringMethodBuilder < Base
      # Builds the method
      #
      # @return (see Base#build)
      def build
        evaluating_class.module_eval(code_definition, __FILE__, __LINE__ + 1)
      end

      delegate :code_definition, to: :definition
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sinclair-2.1.1 lib/sinclair/method_builder/string_method_builder.rb
sinclair-2.1.0 lib/sinclair/method_builder/string_method_builder.rb
sinclair-2.0.1 lib/sinclair/method_builder/string_method_builder.rb
sinclair-2.0.0 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.16.3 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.16.2 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.16.1 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.16.0 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.15.0 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.14.2 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.14.1 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.14.0 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.13.0 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.12.1 lib/sinclair/method_builder/string_method_builder.rb
sinclair-1.12.0 lib/sinclair/method_builder/string_method_builder.rb