Sha256: 40569decf5e604c2af7aeae0ccb627014e2cb1da6eb56a5a4b44d229bb806e6b

Contents?: true

Size: 439 Bytes

Versions: 11

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Sugar
    HELPERS = [
      Grumlin::U,
      Grumlin::T,
      Grumlin::P,
      Grumlin::Pop,
      Grumlin::Order
    ].freeze

    def self.included(base)
      HELPERS.each do |helper|
        name = helper.name.split("::").last
        base.const_set(name, helper)
      end
    end

    def __
      Grumlin::U
    end

    def g
      Grumlin::Traversal.new
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
grumlin-0.11.0 lib/grumlin/sugar.rb
grumlin-0.10.1 lib/grumlin/sugar.rb
grumlin-0.10.0 lib/grumlin/sugar.rb
grumlin-0.9.0 lib/grumlin/sugar.rb
grumlin-0.8.0 lib/grumlin/sugar.rb
grumlin-0.7.0 lib/grumlin/sugar.rb
grumlin-0.6.2 lib/grumlin/sugar.rb
grumlin-0.6.1 lib/grumlin/sugar.rb
grumlin-0.6.0 lib/grumlin/sugar.rb
grumlin-0.5.1 lib/grumlin/sugar.rb
grumlin-0.5.0 lib/grumlin/sugar.rb