Class: Locale::Tag::Irregular

### Home Classes Methods

### In Files

- lib/locale/tag/irregular.rb

### Parent

Locale::Tag::Simple

### Methods

- ::new
- #candidates

### Class/Module Index

Quicksearch

- Locale
- Locale::Driver
- Locale::Driver::CGI
- Locale::Driver::Env
- Locale::Driver::JRuby
- Locale::Driver::Posix
- Locale::Driver::Win32
- Locale::Driver::Win32::Kernel32
- Locale::Driver::Win32Table
- Locale::Info
- Locale::Info::Language
- Locale::Info::Region
- Locale::Middleware
- Locale::Tag
- Locale::Tag::Cldr
- Locale::Tag::Common
- Locale::Tag::Irregular
- Locale::Tag::Posix
- Locale::Tag::Rfc
- Locale::Tag::Simple
- Locale::TagList
- Locale::Util
- Locale::Util::Memoizable

No matching classes.

# Locale::Tag::Irregular

Broken tag class.

### Public Class Methods

new(tag) click to toggle source

    # File lib/locale/tag/irregular.rb, line 20
    def initialize(tag)
      tag = "en" if tag == nil or tag == ""
      super(tag.to_s)
      @tag = tag
    end

### Public Instance Methods

candidates() click to toggle source

Returns an Array of tag-candidates order by priority.

    # File lib/locale/tag/irregular.rb, line 27
    def candidates
      [Irregular.new(tag)]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.