summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-07-07 12:45:35 +0200
committerytti <saku@ytti.fi>2018-07-07 13:45:35 +0300
commit9db0c31f5656d1b689fd6261079730366f15591c (patch)
tree126079966b1d9eff0be48e55772150278a7f92c9 /docs
parent0dec0790f6e41cbeaf76de8fed106f7e845cd176 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/Ruby-API.md5
1 files changed, 5 insertions, 0 deletions
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.