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
Returns the value of attribute blacklisted_keys.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ BackendService
constructor
A new instance of BackendService.
- #translate ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ BackendService
Returns a new instance of BackendService.
8 9 10 |
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 8 def initialize(args = {}) self end |
Instance Attribute Details
#blacklisted_keys ⇒ Object
Returns the value of attribute blacklisted_keys.
6 7 8 |
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 6 def blacklisted_keys @blacklisted_keys end |
Instance Method Details
#translate ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/phraseapp-in-context-editor-ruby/backend_service.rb', line 12 def translate(...) if to_be_translated_without_phraseapp?(...) I18n.translate_without_phraseapp(...) else phraseapp_delegate_for(...) end end |