Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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
-- --

参照

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした