LoginSignup
4

More than 5 years have passed since last update.

Ruboty | 1行の区切り文字列を出力する ruboty-hr を作成しました #ruboty

Last updated at Posted at 2015-01-04

1行の区切り文字列を出力する ruboty-hr を作成しました

概要

1行の区切り文字列を出力する ruboty-hr を作成しました

用途

チャットツールの見た目上、明確に話題を区切りたい時に
ただの文字が続いていると、ぱっと見で分かりにくいものです。

そこで、特定の文字や記号や絵文字を一行分並べることで、
html の hr のような区切り線を作成して話題の切れ目を分かりやすくします。

区切り文字は自由に設定可能にします。

Installation

Add this line to your application's Gemfile:

gem 'ruboty-hr'

And then execute:

$ bundle

Commands

Command Pattern Description
hr /hr\s+(?<text>.+?)\s*(?<count&gt\d*)\z/ Display single line punctuation characters (default 80 times)

Usage

hr

  • Display single line punctuation characters (default 80 times)
>ruboty hr @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>ruboty hr - 40
----------------------------------------
>ruboty hr ~= 40
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

ENV

Name Description
-- --

Dependency

Name Description
-- --

参照

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4