class Object
Public Instance Methods
age(birthday)
click to toggle source
# File lib/ara_practice.rb, line 12 def age(birthday) ((20160801 - birthday) / 10000) end
area_of_circle(radius)
click to toggle source
# File lib/ara_practice.rb, line 16 def area_of_circle(radius) 3.14 * radius ** 2 end
bmi(height, weight)
click to toggle source
# File lib/ara_practice.rb, line 8 def bmi(height, weight) weight / (height / 100.0 ) ** 2 end
greeting()
click to toggle source
# File lib/ara_practice.rb, line 3 def greeting puts 'Hello World' puts AraPractice::VERSION end