Sha256: e04dc9611f4f23870b8292455acb5b685e0b537c76c28e4c83aaa60f520d2cf3

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

class Module	
  def localization lang
    list, resource = [], "#{lang}.#{RubyExt::Localization::RESOURCE_EXTENSION}"
    self_ancestors_and_namespaces do |klass|
    	if RubyExt::Resource.resource_exist? klass, resource
				list << RubyExt::Resource.resource_get(klass, resource)
			end
    end
    return list.reverse.inject(:merge)
  end
end
Cache.cached_with_params :class, Module, :localization

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
RubyExt-0.1.1 lib/RubyExt/Localization/Module.rb
RubyExt-0.1.2 lib/RubyExt/Localization/Module.rb