Class: PhraseApp::InContextEditor::Delegate::Base
- Inherits:
-
String
- Object
- String
- PhraseApp::InContextEditor::Delegate::Base
- Defined in:
- lib/phraseapp-in-context-editor-ruby/delegate.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object (also: #camelize, #underscore, #classify, #dasherize, #tableize)
Class Method Details
.log(message) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/phraseapp-in-context-editor-ruby/delegate.rb', line 16 def self.log() = "phrase: #{message}" if defined?(Rails) and Rails.respond_to?(:logger) Rails.logger.warn() else $stderr.puts end end |
Instance Method Details
#to_s ⇒ Object Also known as: camelize, underscore, classify, dasherize, tableize
7 8 9 |
# File 'lib/phraseapp-in-context-editor-ruby/delegate.rb', line 7 def to_s "#{decorated_key_name}" end |