Class: PhraseApp::InContextEditor::Delegate::Base
- Inherits:
-
String
- Object
- String
- PhraseApp::InContextEditor::Delegate::Base
show all
- Defined in:
- lib/phraseapp-in-context-editor-ruby/delegate.rb
Class Method Summary
collapse
Instance Method Summary
collapse
-
#to_s ⇒ Object
(also: #camelize, #underscore, #classify, #dasherize, #tableize)
Class Method Details
.log(message) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/phraseapp-in-context-editor-ruby/delegate.rb', line 20
def self.log(message)
message = "phrase: #{message}"
if defined?(Rails) and Rails.respond_to?(:logger)
Rails.logger.warn(message)
else
$stderr.puts message
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
|