Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Items
- def ident(content,input="done")
- foo = {
- :done => "[+] ",
- :note => "[!] ",
- :erro => "[-] "
- }
- puts foo[input.to_sym]+content
- end
- def cont
- ident("this is the conent","note")
- #I want get the print out as
- end
- end
- c = Items.new()
- c.cont
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement