Module: I18n

Defined in:
lib/i18n/scope.rb

Defined Under Namespace

Classes: Scope

Class Method Summary collapse

Class Method Details

.scoped(scope = nil) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/i18n/scope.rb', line 5

def self.scoped(scope=nil)
  rtn = I18n::Scope.new(scope)
  
  if block_given?
    yield rtn
  else
    rtn
  end
end