lib/strings/extensions.rb in strings-0.1.7 vs lib/strings/extensions.rb in strings-0.1.8

- old
+ new

@@ -3,43 +3,47 @@ require_relative '../strings' module Strings module Extensions refine String do - def align(*args) - Align.align(self, *args) + def align(*args, **kws) + Align.align(self, *args, **kws) end - def align_left(*args) - Align.align_left(self, *args) + def align_left(*args, **kws) + Align.align_left(self, *args, **kws) end - def align_right(*args) - Align.align_right(self, *args) + def align_center(*args, **kws) + Align.align_center(self, *args, **kws) end + def align_right(*args, **kws) + Align.align_right(self, *args, **kws) + end + def ansi? ANSI.ansi?(self) end def fold(*args) Fold.fold(self, *args) end - def pad(*args) - Pad.pad(self, *args) + def pad(*args, **kws) + Pad.pad(self, *args, **kws) end def sanitize ANSI.sanitize(self) end def truncate(*args) Truncate.truncate(self, *args) end - def wrap(*args) - Wrap.wrap(self, *args) + def wrap(*args, **kws) + Wrap.wrap(self, *args, **kws) end end end # Extensions end # Strings