module GorillaPatch::Inflections::MethodsFromDryInflector

Module for definition methods from Dry::Inflector

Private Instance Methods

define_methods_from_dry_inflector() click to toggle source
# File lib/gorilla_patch/inflections.rb, line 101
def define_methods_from_dry_inflector
        inflector = Dry::Inflector.new

        inflector.public_methods.each do |method_name|
                define_method method_name do
                        inflector.public_send method_name, self
                end
        end
end