class Object
Constants
- ID
- Settings
- URL
- WORDS
Public Instance Methods
anpea(a, b)
click to toggle source
# File bin/zinbeiw, line 237 def anpea(a, b) b / a end
char_stat(str)
click to toggle source
文字列の出現頻度を調べる。
# File bin/zinbeiw, line 589 def char_stat(str) table = Hash.new(0) str.scan(/./m) do |ch| table[ch] += 1 end table.to_a.sort_by { |_, con| -con } end
rister(k, l)
click to toggle source
# File bin/zinbeiw, line 286 def rister(k, l) k / l end
seru(b)
click to toggle source
# File bin/zinbeiw, line 111 def seru(b) (b - 32) * 5 / 9 end
volt(c, d)
click to toggle source
# File bin/zinbeiw, line 262 def volt(c, d) c * d end