Ruby - Classes and Objects
Given the following Ruby code, what will be the output?
class Calculator
def self.description
"I am a Calculator"
end
def initialize(value)
@value = value
end
def show_description
self.class.description
end
end
calc = Calculator.new(10)
puts calc.show_description