Flowdock
method

each_sublocale

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: IRB::Locale
each_sublocale() private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/irb/locale.rb, line 162
    def each_sublocale
      if @lang
        if @territory
          if @encoding_name
            yield "#{@lang}_#{@territory}.#{@encoding_name}@#{@modifier}" if @modifier
            yield "#{@lang}_#{@territory}.#{@encoding_name}"
          end
          yield "#{@lang}_#{@territory}@#{@modifier}" if @modifier
          yield "#{@lang}_#{@territory}"
        end
        if @encoding_name
          yield "#{@lang}.#{@encoding_name}@#{@modifier}" if @modifier
          yield "#{@lang}.#{@encoding_name}"
        end
        yield "#{@lang}@#{@modifier}" if @modifier
        yield "#{@lang}"
      end
      yield nil
    end
Register or log in to add new notes.