Class: FA::Base
- Inherits:
-
Object
- Object
- FA::Base
- Defined in:
- lib/fa/base.rb
Overview
FontAwesome 5 (Pro) Helper core class for inheritance
Instance Method Summary collapse
-
#raw ⇒ Object
Outputs the formatted string directly.
-
#safe ⇒ Object
Attempts to call ‘.html_safe` on the the output of `raw`, if available.
Instance Method Details
#raw ⇒ Object
Outputs the formatted string directly.
7 8 9 |
# File 'lib/fa/base.rb', line 7 def raw # end |
#safe ⇒ Object
Attempts to call ‘.html_safe` on the the output of `raw`, if available.
12 13 14 15 |
# File 'lib/fa/base.rb', line 12 def safe output = raw output.respond_to?(:html_safe) ? output.html_safe : output end |