Class: Nomener::Configuration
- Inherits:
-
Object
- Object
- Nomener::Configuration
- Defined in:
- lib/nomener/configuration.rb
Instance Attribute Summary collapse
-
#direction ⇒ Object
(also: #dir)
Returns the value of attribute direction.
-
#format ⇒ Object
Returns the value of attribute format.
-
#language ⇒ Object
(also: #lang)
Returns the value of attribute language.
-
#lquote ⇒ Object
(also: #left_quote, #left)
Returns the value of attribute lquote.
-
#rquote ⇒ Object
(also: #right_quote, #right)
Returns the value of attribute rquote.
-
#squote ⇒ Object
(also: #single_quote, #single)
Returns the value of attribute squote.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
initializes the configuration object.
Constructor Details
#initialize ⇒ Configuration
initializes the configuration object
9 10 11 12 13 14 15 16 |
# File 'lib/nomener/configuration.rb', line 9 def initialize @lquote = '"' @rquote = '"' @squote = '\'' @language = :en @direction = :ltr @format = '%f %m %l' end |
Instance Attribute Details
#direction ⇒ Object Also known as: dir
Returns the value of attribute direction.
6 7 8 |
# File 'lib/nomener/configuration.rb', line 6 def direction @direction end |
#format ⇒ Object
Returns the value of attribute format.
6 7 8 |
# File 'lib/nomener/configuration.rb', line 6 def format @format end |
#language ⇒ Object Also known as: lang
Returns the value of attribute language.
6 7 8 |
# File 'lib/nomener/configuration.rb', line 6 def language @language end |
#lquote ⇒ Object Also known as: left_quote, left
Returns the value of attribute lquote.
6 7 8 |
# File 'lib/nomener/configuration.rb', line 6 def lquote @lquote end |
#rquote ⇒ Object Also known as: right_quote, right
Returns the value of attribute rquote.
6 7 8 |
# File 'lib/nomener/configuration.rb', line 6 def rquote @rquote end |
#squote ⇒ Object Also known as: single_quote, single
Returns the value of attribute squote.
6 7 8 |
# File 'lib/nomener/configuration.rb', line 6 def squote @squote end |