Class: AdLocalize::Platform::JsonFormatter
- Inherits:
-
PlatformFormatter
- Object
- PlatformFormatter
- AdLocalize::Platform::JsonFormatter
- Defined in:
- lib/ad_localize/platform/json_formatter.rb
Constant Summary
Constants inherited from PlatformFormatter
PlatformFormatter::OPTIONS, PlatformFormatter::PLURAL_KEY_SYMBOL, PlatformFormatter::SINGULAR_KEY_SYMBOL
Instance Attribute Summary
Attributes inherited from PlatformFormatter
#default_locale, #output_path, #platform_dir
Instance Method Summary collapse
- #export(locale, data, export_extension = "json", substitution_format = "angular") ⇒ Object
- #platform ⇒ Object
Methods inherited from PlatformFormatter
Constructor Details
This class inherits a constructor from AdLocalize::Platform::PlatformFormatter
Instance Method Details
#export(locale, data, export_extension = "json", substitution_format = "angular") ⇒ Object
7 8 9 10 11 |
# File 'lib/ad_localize/platform/json_formatter.rb', line 7 def export(locale, data, export_extension = "json", substitution_format = "angular") super(locale, data, export_extension, substitution_format) do |json_data, file| file.puts json_data.to_json end end |
#platform ⇒ Object
3 4 5 |
# File 'lib/ad_localize/platform/json_formatter.rb', line 3 def platform :json end |