Class: TwitterCldr::Tokenizers::Base
- Inherits:
-
Object
- Object
- TwitterCldr::Tokenizers::Base
- Defined in:
- lib/twitter_cldr/tokenizers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#placeholders ⇒ Object
Returns the value of attribute placeholders.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#token_splitter_regexes ⇒ Object
readonly
Returns the value of attribute token_splitter_regexes.
-
#token_type_regexes ⇒ Object
readonly
Returns the value of attribute token_type_regexes.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 16 17 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 13 def initialize( = {}) @locale = TwitterCldr.convert_locale([:locale] || TwitterCldr::DEFAULT_LOCALE) init_resources init_placeholders end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
11 12 13 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 11 def format @format end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
9 10 11 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 9 def locale @locale end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
10 11 12 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 10 def paths @paths end |
#placeholders ⇒ Object
Returns the value of attribute placeholders.
11 12 13 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 11 def placeholders @placeholders end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
9 10 11 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 9 def resource @resource end |
#token_splitter_regexes ⇒ Object (readonly)
Returns the value of attribute token_splitter_regexes.
10 11 12 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 10 def token_splitter_regexes @token_splitter_regexes end |
#token_type_regexes ⇒ Object (readonly)
Returns the value of attribute token_type_regexes.
10 11 12 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 10 def token_type_regexes @token_type_regexes end |
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/twitter_cldr/tokenizers/base.rb', line 11 def type @type end |