Class: ActiveSupport::SafeBuffer

Inherits:
Object
  • Object
show all
Defined in:
lib/html-native-rails.rb

Instance Method Summary collapse

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_concatObject



7
# File 'lib/html-native-rails.rb', line 7

alias_method :html_component_old_concat, :concat

#html_component_old_insertObject



6
# File 'lib/html-native-rails.rb', line 6

alias_method :html_component_old_insert, :<<

#html_component_old_plusObject



5
# File 'lib/html-native-rails.rb', line 5

alias_method :html_component_old_plus, :+