0.01
No commit activity in last 3 years
No release in over 3 years
Fetches a random lolcat, and returns the appropriate output format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

can-has-lolcat

can haz random lolcat? Well of course you can:

Lolcat.can_has
=> "http://icanhascheezburger.files.wordpress.com/2010/08/1c6fbea0-4735-49c5-8247-5f618b66c219.jpg"

For extra awesome, you can specify an output format:

Lolcat.can_has(:html)
=> "<img src='http://icanhascheezburger.files.wordpress.com/2010/08/1c6fbea0-4735-49c5-8247-5f618b66c219.jpg' alt='' />"

Lolcat.can_has(:bbcode)
=> "[img]http://icanhascheezburger.files.wordpress.com/2010/08/1c6fbea0-4735-49c5-8247-5f618b66c219.jpg[/img]"

Lolcat.can_has(:url)
=> "http://icanhascheezburger.files.wordpress.com/2010/08/1c6fbea0-4735-49c5-8247-5f618b66c219.jpg"

Yes, Lolcat.can_has(:url) is exactly the same as Lolcat.can_has but more cat-chy! And well yes of course, it doesn't matter if you use #can_has or #can_haz or both.

Made for Whyday 2010. Because it's craaazy. I've implemented this in an admin interface somewhere, but sssh!

Installation

[sudo] gem install can-has-lolcat

It has no capendencies.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2010 Simon. See LICENSE for details.