class RADWIMPS
RADWIMPS(ラッドウィンプス)は、日本の4人組ロックバンドである。 所属レコード会社はユニバーサルミュージック、所属レーベルはEMI Records/Muzinto Records。 所属事務所は有限会社ボクチン(英語: voque ting、所属はRADWIMPSのみ)。 略称は「ラッド(RAD)」。 @note バンド名は、「すごい」「強い」「いかした」という意味の軽いアメリカ英語の俗語「rad」と、「弱虫」「意気地なし」という意味の「wimp」を組み合わせた造語であり、「かっこいい弱虫」「見事な意気地なし」といった意味である。 @see ja.wikipedia.org/wiki/RADWIMPS Wikipedia - RADWIMPS
Constants
- VERSION
Public Class Methods
new(strict: false)
click to toggle source
RADWIMPSを新しく結成します。
@param [Boolean] strict 前前前世に戻ることができなかった場合に例外を発生させるかどうか。
# File lib/radwimps.rb, line 21 def initialize(strict: false) @life_counter = 0 @strict = strict end
Public Instance Methods
raise()
click to toggle source
来世を探します。
@return [self]
# File lib/radwimps.rb, line 43 def raise @life_counter += 1 self end
Also aliased as: 来
set()
click to toggle source
そのぶきっちょな笑い方をめがけて やってきます。
@raise [RADWIMPS::Error] 前前前世に戻ることができなかった場合。
# File lib/radwimps.rb, line 55 def set if @strict if @life_counter < -3 fail Error, "前世に行きすぎました。現在は#{format_counter}にいます。" elsif @life_counter == 0 fail Error, "君の前前前世を探していません。現在は#{format_counter}にいます。" elsif @life_counter > -3 fail Error, "君の前前前世までたどり着いていません。現在は#{format_counter}にいます。" else puts format_counter end else puts format_counter end ensure @life_counter = 0 end
Also aliased as: 世
then()
click to toggle source
前世を探します。
@return [self]
# File lib/radwimps.rb, line 31 def then @life_counter -= 1 self end
Also aliased as: 前
Private Instance Methods
format_counter()
click to toggle source
# File lib/radwimps.rb, line 77 def format_counter if @life_counter == 0 "現世" elsif @life_counter > 0 "来" * @life_counter + "世" else "前" * @life_counter.abs + "世" end end