Class: ActiveSupport::SafeBuffer
- Inherits:
-
Object
- Object
- ActiveSupport::SafeBuffer
- Defined in:
- lib/html-native-rails.rb
Instance Method Summary collapse
- #+(other) ⇒ Object
- #<<(other) ⇒ Object
- #concat(other) ⇒ Object
- #html_component_old_concat ⇒ Object
- #html_component_old_insert ⇒ Object
- #html_component_old_plus ⇒ Object
Instance Method Details
#+(other) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/html-native-rails.rb', line 8 def +(other) if other.kind_of? HTMLComponent::Builder self.component + other else self.html_component_old_plus(other) end end |
#<<(other) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/html-native-rails.rb', line 16 def <<(other) if other.kind_of? HTMLComponent::Builder self.component + other else self.html_component_old_insert(other) end end |
#concat(other) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/html-native-rails.rb', line 24 def concat(other) if other.kind_of? HTMLComponent::Builder self.component + other else self.html_component_old_insert(other) end end |
#html_component_old_concat ⇒ Object
7 |
# File 'lib/html-native-rails.rb', line 7 alias_method :html_component_old_concat, :concat |
#html_component_old_insert ⇒ Object
6 |
# File 'lib/html-native-rails.rb', line 6 alias_method :html_component_old_insert, :<< |
#html_component_old_plus ⇒ Object
5 |
# File 'lib/html-native-rails.rb', line 5 alias_method :html_component_old_plus, :+ |