Skip to content

Instantly share code, notes, and snippets.

@nuke99
Created June 1, 2012 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuke99/c8ccda257f8ecd8234db to your computer and use it in GitHub Desktop.
Save nuke99/c8ccda257f8ecd8234db to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
class Storage
def initialize
@info = {'photoshop'=>'this is used for photos hoped','photomas'=>'this is a photo editing tool','dreamviwer'=>'used for web design'}
end
def output
@info.each do |k,v|
puts "#{k} #{v} "
end
endy
def search(lis); puts( @info[lis] || "why u no name existing program t('_'t)" ); end
end
c = Storage.new()
c.search("photo")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment