Module: M3ta
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/m3ta.rb,
lib/m3ta/builder.rb,
lib/m3ta/helpers.rb,
lib/m3ta/railtie.rb,
lib/m3ta/version.rb,
lib/m3ta/controller.rb
Defined Under Namespace
Modules: Controller, Helpers Classes: Builder, Railtie
Constant Summary collapse
- VERSION =
'0.1.1'
Class Method Summary collapse
Class Method Details
.defaults(&block) ⇒ Object
14 15 16 17 |
# File 'lib/m3ta.rb', line 14 def defaults(&block) @defaults ||= Builder.new(I18n.translate(:m3ta, default: {})) @defaults.tap { |b| b.apply(&block) if block_given? } end |