Module: CrowdFund::Fundable
- Included in:
- Project
- Defined in:
- lib/crowdfund/fundable.rb
Instance Method Summary collapse
Instance Method Details
#add_funds ⇒ Object
5 6 7 8 |
# File 'lib/crowdfund/fundable.rb', line 5 def add_funds @funding += 25 puts "Project #{@name} received funds!" end |
#remove_funds ⇒ Object
10 11 12 13 |
# File 'lib/crowdfund/fundable.rb', line 10 def remove_funds @funding -= 15 puts "Project #{@name} lost funds!" end |