Class: Eskimo::ASCII::Strip

Inherits:
Component show all
Defined in:
lib/eskimo/ascii/components/strip.rb

Overview

Remove surrounding whitespace.

Strip.new { "  hello world  " }
# => "hello world"

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Eskimo::ASCII::Component

Instance Method Details

#renderObject



9
10
11
# File 'lib/eskimo/ascii/components/strip.rb', line 9

def render(**)
  super.strip
end