Class: ActiveSupport::SafeBuffer
- Inherits:
-
Object
- Object
- ActiveSupport::SafeBuffer
- Defined in:
- lib/html-native-rails.rb
Overview
There is no need to alias methods into components or handle existing helper functions as Builders. This is handled by Builder implicitly converting to a string
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
11 12 13 14 15 16 17 |
# File 'lib/html-native-rails.rb', line 11 def +(other) if other.kind_of? HTMLComponent::Builder self.component + other else self.html_component_old_plus(other) end end |
#<<(other) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/html-native-rails.rb', line 19 def <<(other) if other.kind_of? HTMLComponent::Builder self.component + other else self.html_component_old_insert(other) end end |
#concat(other) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/html-native-rails.rb', line 27 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
10 |
# File 'lib/html-native-rails.rb', line 10 alias_method :html_component_old_concat, :concat |
#html_component_old_insert ⇒ Object
9 |
# File 'lib/html-native-rails.rb', line 9 alias_method :html_component_old_insert, :<< |
#html_component_old_plus ⇒ Object
8 |
# File 'lib/html-native-rails.rb', line 8 alias_method :html_component_old_plus, :+ |