Class: Locomotive::Steam::Liquid::Drops::Param
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Locomotive::Steam::Liquid::Drops::Param
- Defined in:
- lib/locomotive/steam/liquid/drops/params.rb
Instance Method Summary collapse
- #html_safe ⇒ Object
-
#initialize(param) ⇒ Param
constructor
A new instance of Param.
- #to_liquid ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(param) ⇒ Param
Returns a new instance of Param.
28 29 30 |
# File 'lib/locomotive/steam/liquid/drops/params.rb', line 28 def initialize(param) @param = param end |
Instance Method Details
#html_safe ⇒ Object
32 33 34 |
# File 'lib/locomotive/steam/liquid/drops/params.rb', line 32 def html_safe @param end |
#to_liquid ⇒ Object
36 37 38 |
# File 'lib/locomotive/steam/liquid/drops/params.rb', line 36 def to_liquid @param.is_a?(String) ? html_escape(@param) : @param end |
#to_s ⇒ Object
40 41 42 |
# File 'lib/locomotive/steam/liquid/drops/params.rb', line 40 def to_s to_liquid.to_s end |