Sha256: 8c77462b06ac473be5a33808977227ed66811b765d9b4e756c5c29d56d0e6b11

Contents?: true

Size: 281 Bytes

Versions: 12

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Sugar
    def self.included(base)
      base.include(Grumlin::Expressions)
    end

    %i[__ g].each do |name|
      define_method name do |cuts = Shortcuts::Storage.empty|
        cuts.send(name)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grumlin-0.23.0 lib/grumlin/sugar.rb
grumlin-0.22.5 lib/grumlin/sugar.rb
grumlin-0.22.4 lib/grumlin/sugar.rb
grumlin-0.22.3 lib/grumlin/sugar.rb
grumlin-0.22.2 lib/grumlin/sugar.rb
grumlin-0.22.1 lib/grumlin/sugar.rb
grumlin-0.22.0 lib/grumlin/sugar.rb
grumlin-0.21.1 lib/grumlin/sugar.rb
grumlin-0.21.0 lib/grumlin/sugar.rb
grumlin-0.20.2 lib/grumlin/sugar.rb
grumlin-0.20.1 lib/grumlin/sugar.rb
grumlin-0.20.0 lib/grumlin/sugar.rb