Class: GettextI18nRailsJs::Config
- Inherits:
-
Object
- Object
- GettextI18nRailsJs::Config
- Defined in:
- lib/gettext_i18n_rails_js/config.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#handlebars_function ⇒ Object
Returns the value of attribute handlebars_function.
-
#javascript_function ⇒ Object
Returns the value of attribute javascript_function.
-
#jed_options ⇒ Object
Returns the value of attribute jed_options.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#rails_engine ⇒ Object
Returns the value of attribute rails_engine.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 36 def initialize(&block) @output_path = defaults[:output_path] @handlebars_function = defaults[:handlebars_function] @javascript_function = defaults[:javascript_function] @jed_options = defaults[:jed_options].symbolize_keys @rails_engine = defaults[:rails_engine] @domain = defaults[:domain] instance_eval(&block) if block_given? end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
29 30 31 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 29 def domain @domain end |
#handlebars_function ⇒ Object
Returns the value of attribute handlebars_function.
29 30 31 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 29 def @handlebars_function end |
#javascript_function ⇒ Object
Returns the value of attribute javascript_function.
29 30 31 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 29 def javascript_function @javascript_function end |
#jed_options ⇒ Object
Returns the value of attribute jed_options.
29 30 31 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 29 def @jed_options end |
#output_path ⇒ Object
Returns the value of attribute output_path.
29 30 31 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 29 def output_path @output_path end |
#rails_engine ⇒ Object
Returns the value of attribute rails_engine.
29 30 31 |
# File 'lib/gettext_i18n_rails_js/config.rb', line 29 def rails_engine @rails_engine end |