From 9db0c31f5656d1b689fd6261079730366f15591c Mon Sep 17 00:00:00 2001
From: Wild Kat <wk@users.noreply.github.com>
Date: Sat, 7 Jul 2018 12:45:35 +0200
Subject: use convenience methods in models

* use convenience methods in models for legibility
* disable Style/SymbolProc in rubocop
* introduce cut_both instead of cut_head.cut_tail chain
* document cut_both convenience method
---
 docs/Ruby-API.md | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'docs')

diff --git a/docs/Ruby-API.md b/docs/Ruby-API.md
index a9e130a..feea2dd 100644
--- a/docs/Ruby-API.md
+++ b/docs/Ruby-API.md
@@ -180,3 +180,8 @@ single line was present.
 
 Returns a multi-line string without the first line, or an empty string if only a
 single line was present.
+
+#### `cut_both`
+
+Returns a multi-line string without the first and last lines, or an empty string
+if fewer than three lines were present.
-- 
cgit v1.2.3