Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jobs = Array.new
- jobs << {:name => 'Railroad Tycoon', :salary => 100000000 }
- jobs << {:name => 'Nike Textile Laborer', :salary => 1.5 }
- legal_jobs = jobs.select { |job| job[:salary] > 5.25 }
Add Comment
Please, Sign In to add comment