Module: Safeguard::CoreExt::Module

Defined in:
lib/safeguard/core_ext/module.rb

Overview

Ruby core extensions for the Module class.

Instance Method Summary collapse

Instance Method Details

#translation_key(*args) ⇒ Object



7
8
9
# File 'lib/safeguard/core_ext/module.rb', line 7

def translation_key(*args)
  name.split('::').push(*args).map(&:to_s).map(&:downcase).join '.'
end