class Taekmin::Wallet
Public Class Methods
new(price)
click to toggle source
# File lib/taekmin.rb, line 19 def initialize(price) @price = price end
Public Instance Methods
borrow(person)
click to toggle source
# File lib/taekmin.rb, line 23 def borrow(person) if person.is_female? puts "I am always open for you. $#{@price}" else puts "I am poor, too. Sorry" end end