Module: Dbi18::Configure
- Included in:
- Dbi18
- Defined in:
- lib/dbi18/configure.rb
Constant Summary collapse
- LOCALE =
[:en,:zh]
Instance Attribute Summary collapse
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#model ⇒ Object
Returns the value of attribute model.
Instance Method Summary collapse
Instance Attribute Details
#locale ⇒ Object
Returns the value of attribute locale.
6 7 8 |
# File 'lib/dbi18/configure.rb', line 6 def locale @locale end |
#model ⇒ Object
Returns the value of attribute model.
8 9 10 |
# File 'lib/dbi18/configure.rb', line 8 def model @model end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
10 11 12 13 14 15 |
# File 'lib/dbi18/configure.rb', line 10 def configure yield self if block_given? self.locale ||= LOCALE end |