Advertisement
anykey

Untitled

Mar 30th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.29 KB | None | 0 0
  1. class Items
  2.  
  3.   def ident(content,input="done")
  4.     foo = {
  5.     :done => "[+] ",
  6.     :note => "[!] ",
  7.         :erro => "[-] "
  8.     }
  9.     puts foo[input.to_sym]+content
  10.   end
  11.  
  12.   def cont
  13.     ident("this is the conent","note")
  14.     #I want get the print out as
  15.   end
  16. end
  17.  
  18. c = Items.new()
  19. c.cont
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement