Class: PhraseApp::InContextEditor::BackendService
- Inherits:
-
Object
- Object
- PhraseApp::InContextEditor::BackendService
- Defined in:
- lib/phraseapp-in-context-editor-ruby/backend_service.rb
Instance Attribute Summary collapse
-
#blacklisted_keys ⇒ Object
writeonly
Sets the attribute blacklisted_keys.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ BackendService
constructor
A new instance of BackendService.
- #translate(*args) ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ BackendService
Returns a new instance of BackendService.
11 12 13 |
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 11 def initialize(args = {}) self end |
Instance Attribute Details
#blacklisted_keys=(value) ⇒ Object
Sets the attribute blacklisted_keys
9 10 11 |
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 9 def blacklisted_keys=(value) @blacklisted_keys = value end |
Instance Method Details
#translate(*args) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 15 def translate(*args) if to_be_translated_without_phraseapp?(args) I18n.translate_without_phraseapp(*args) else phraseapp_delegate_for(args) end end |