Class: Eskimo::Components::StripRight
- Inherits:
-
Eskimo::Component
- Object
- Eskimo::Component
- Eskimo::Components::StripRight
- Defined in:
- lib/eskimo/components/strip_right.rb
Overview
Remove whitespace from the end.
StripRight.new { " hello world " }
# => " hello world"
Instance Method Summary collapse
Methods inherited from Eskimo::Component
Constructor Details
This class inherits a constructor from Eskimo::Component
Instance Method Details
#render ⇒ Object
10 11 12 |
# File 'lib/eskimo/components/strip_right.rb', line 10 def render(**) super.rstrip end |