Module: Rich::I18n::Core::ERB::Output
- Included in:
- ERB::Compiler::Buffer
- Defined in:
- lib/rich/i18n/core/erb/output.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 |
# File 'lib/rich/i18n/core/erb/output.rb', line 8 def self.included(base) base.class_eval do alias_method_chain :push, :rich_i18n end end |
Instance Method Details
#push_with_rich_i18n(cmd) ⇒ Object
14 15 16 |
# File 'lib/rich/i18n/core/erb/output.rb', line 14 def push_with_rich_i18n(cmd) push_without_rich_i18n cmd.match(/^#{@compiler.insert_cmd}\(\(.*\)\.to_s\)$/) ? cmd.gsub(/to_s\)$/, "to_output)") : cmd end |