Class: Formatic::SafeJoin
- Inherits:
-
Object
- Object
- Formatic::SafeJoin
- 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
- #call ⇒ Object
-
#initialize(*input) ⇒ SafeJoin
constructor
A new instance of SafeJoin.
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
.call ⇒ Object
8 9 10 |
# File 'lib/formatic/safe_join.rb', line 8 def self.call(...) new(...).call end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/formatic/safe_join.rb', line 16 def call safe_join(@input) end |