Class: Formatic::SafeJoin

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::OutputSafetyHelper
Defined in:
lib/formatic/safe_join.rb

Overview

Joins multiple html safe strings, retaining html safety.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*input) ⇒ SafeJoin

Returns a new instance of SafeJoin.



12
13
14
# File 'lib/formatic/safe_join.rb', line 12

def initialize(*input)
  @input = input
end

Class Method Details

.callObject



8
9
10
# File 'lib/formatic/safe_join.rb', line 8

def self.call(...)
  new(...).call
end

Instance Method Details

#callObject



16
17
18
# File 'lib/formatic/safe_join.rb', line 16

def call
  safe_join(@input)
end