Class: Eskimo::Components::StripLeft

Inherits:
Eskimo::Component show all
Defined in:
lib/eskimo/components/strip_left.rb

Overview

Remove whitespace from the beginning.

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

Instance Method Summary collapse

Methods inherited from Eskimo::Component

#initialize

Constructor Details

This class inherits a constructor from Eskimo::Component

Instance Method Details

#renderObject



10
11
12
# File 'lib/eskimo/components/strip_left.rb', line 10

def render(**)
  super.lstrip
end