lib/grumlin/sugar.rb in grumlin-0.12.3 vs lib/grumlin/sugar.rb in grumlin-0.12.4
- old
+ new
@@ -1,23 +1,10 @@
# frozen_string_literal: true
module Grumlin
module Sugar
- HELPERS = [
- Grumlin::Tools::Order,
- Grumlin::Tools::P,
- Grumlin::Tools::Pop,
- Grumlin::Tools::Scope,
- Grumlin::Tools::T,
- Grumlin::Tools::U,
- Grumlin::Tools::WithOptions
- ].freeze
-
def self.included(base)
- HELPERS.each do |helper|
- name = helper.name.split("::").last
- base.const_set(name, helper)
- end
+ base.include Grumlin::Tools
end
def __
Grumlin::Tools::U
end