class Takarabako
Constants
- NAMES_EN
- NAMES_JA
- VERSION
Public Class Methods
new()
click to toggle source
# File lib/takarabako.rb, line 12 def initialize names = [NAMES_JA, NAMES_EN].sample @head = names['head'].sample @tail = names['tail'].sample end
open()
click to toggle source
# File lib/takarabako.rb, line 8 def self.open new.to_s end
Public Instance Methods
to_s()
click to toggle source
# File lib/takarabako.rb, line 18 def to_s @head + @tail end