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