Conditions | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | 1 | require 'render_anywhere' |
|
59 | 1 | def text(options = {}) |
|
60 | 13 | @locale = options[:locale] || I18n.locale |
|
61 | |||
62 | 13 | options = self.class.with_defaults(options) |
|
63 | 13 | options.merge!( |
|
64 | :texter => self.class, |
||
65 | :action => @action, |
||
66 | :args => @args, |
||
67 | :content => options[:body].is_a?(String) ? options[:body] : nil, |
||
68 | :renderer => self) |
||
69 | |||
70 | 13 | ::Textris::Message.new(options) |
|
71 | end |
||
72 | |||
89 |