Sha256: c5c604c151ad0467909fe4e87ec036c6eea0b514d2cb2b8c2908e4c381df0e37

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require 'yaml'
require 'hashie'
require 'zeitwerk'

loader = Zeitwerk::Loader.for_gem
loader.setup

# Store your messages anywhere and fetch them anytime.
# For example:
#
#   class MyClass
#     include MessagesDictionary
#     has_messages_dictionary

#     def calculate(a)
#       result = a ** 2
#       pretty_output(:show_result, result: result)
#     end
#   end
module MessagesDictionary
  def self.included(klass)
    klass.include MessagesDictionary::Injector
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
messages_dictionary-2.1.0 lib/messages_dictionary.rb
messages_dictionary-2.0.0 lib/messages_dictionary.rb