class Object
Constants
- Border
Console Output list.
- Settings
- URL
- WORDS
Public Instance Methods
anpea(a, b)
click to toggle source
# File bin/speak, line 239 def anpea(a, b) x = b / a x end
char_stat(str)
click to toggle source
文字列の出現頻度を調べる。
# File bin/speak, line 578 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/speak, line 290 def rister(k, l) z = k / l z end
seru(b)
click to toggle source
# File bin/speak, line 111 def seru(b) y = (b - 32) * 5 / 9 y end
volt(c, d)
click to toggle source
# File bin/speak, line 265 def volt(c, d) y = c * d y end