Class: RADWIMPS
- Inherits:
-
Object
- Object
- RADWIMPS
- Defined in:
- lib/radwimps.rb
Overview
Note:
バンド名は、「すごい」「強い」「いかした」という意味の軽いアメリカ英語の俗語「rad」と、「弱虫」「意気地なし」という意味の「wimp」を組み合わせた造語であり、「かっこいい弱虫」「見事な意気地なし」といった意味である。
RADWIMPS(ラッドウィンプス)は、日本の4人組ロックバンドである。 所属レコード会社はユニバーサルミュージック、所属レーベルはEMI Records/Muzinto Records。 所属事務所は有限会社ボクチン(英語: voque ting、所属はRADWIMPSのみ)。 略称は「ラッド(RAD)」。
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"2016.8.24"
- RAISE =
Somehow steep fails with Kernel.raise
method(:raise)
Instance Method Summary collapse
-
#initialize(strict: false) ⇒ RADWIMPS
constructor
RADWIMPSを新しく結成します。.
-
#raise ⇒ self
(also: #来)
来世を探します。.
-
#set ⇒ Object
(also: #世)
そのぶきっちょな笑い方をめがけて やってきます。.
-
#then ⇒ self
(also: #前)
前世を探します。.
Constructor Details
#initialize(strict: false) ⇒ RADWIMPS
RADWIMPSを新しく結成します。
22 23 24 25 |
# File 'lib/radwimps.rb', line 22 def initialize(strict: false) @life_counter = 0 @strict = strict end |
Instance Method Details
#raise ⇒ self Also known as: 来
来世を探します。
44 45 46 47 |
# File 'lib/radwimps.rb', line 44 def raise @life_counter += 1 self end |
#set ⇒ Object Also known as: 世
そのぶきっちょな笑い方をめがけて やってきます。
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/radwimps.rb', line 56 def set if @strict if @life_counter < -3 RAISE.(Error, "前世に行きすぎました。現在は#{format_counter}にいます。") elsif @life_counter == 0 RAISE.(Error, "君の前前前世を探していません。現在は#{format_counter}にいます。") elsif @life_counter > -3 RAISE.(Error, "君の前前前世までたどり着いていません。現在は#{format_counter}にいます。") else puts format_counter end else puts format_counter end end |
#then ⇒ self Also known as: 前
前世を探します。
32 33 34 35 |
# File 'lib/radwimps.rb', line 32 def then @life_counter -= 1 self end |