Top Level Namespace

Defined Under Namespace

Modules: CrowdFund Classes: Pledge

Instance Method Summary collapse

Instance Method Details

#nowObject

puts “#project3project3.center(8,‘$’) has a fund of #fund3.”



23
24
25
# File 'lib/crowdfund/projects.rb', line 23

def now
  Time.new.strftime('%A %y-%m-%d at %H.%M.%S')
end

#presentation(project, fund = 1500) ⇒ Object



27
28
29
# File 'lib/crowdfund/projects.rb', line 27

def presentation(project,fund = 1500)
  "#{now} : #{project.capitalize.ljust(20,'.')} #{fund} fund."
end