Sha256: d500d0f179616d62f0e995d790246b7631bc7ccc390f197f96c18f4865fbf8e1

Contents?: true

Size: 485 Bytes

Versions: 13

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

require "zeitwerk"

Zeitwerk::Loader.new.then do |loader|
  loader.tag = File.basename __FILE__, ".rb"
  loader.push_dir __dir__
  loader.setup
end

# Main namespace.
module Pipeable
  def self.[](container) = Builder.new(container)

  def self.included(descendant) = descendant.include Builder.new

  def self.loader registry = Zeitwerk::Registry
    @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pipeable-1.2.0 lib/pipeable.rb
pipeable-1.1.0 lib/pipeable.rb
pipeable-1.0.0 lib/pipeable.rb
pipeable-0.14.0 lib/pipeable.rb
pipeable-0.13.0 lib/pipeable.rb
pipeable-0.12.0 lib/pipeable.rb
pipeable-0.11.0 lib/pipeable.rb
pipeable-0.10.0 lib/pipeable.rb
pipeable-0.9.1 lib/pipeable.rb
pipeable-0.9.0 lib/pipeable.rb
pipeable-0.8.0 lib/pipeable.rb
pipeable-0.7.0 lib/pipeable.rb
pipeable-0.4.0 lib/pipeable.rb