Project

yodaism

0.0
No commit activity in last 3 years
No release in over 3 years
Ever need a quick quote from Yoda? Maybe you just need him to give you some quick advice. Yodaism is a collection of quotes and some ascii porn to get your Yoda fix.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

Yodaism

Desc

Ever need a quick quote from Yoda? Maybe you just need him to give you some quick advice. Yodaism is a collection of quotes and some ascii porn to get your Yoda fix.

Requirements

Ruby >= 1.9.2

Install

gem install yodaism

How-to

There is really only two modes right now for it.

To get just a plain quote just execute the gem with no options

[~/yoda]$ yodaism
..........

To get a picture of yoda in ascii format

[~/yoda]$ yodaism ascii
..........

picture alt

That's all there is, very simple.

Use it in your script

require 'yodaism'

class YodaQuote
    include Yodaism

    attr_accessor :yoda_quote

    def initialize
      @yoda_quote = Yodaism.quote
    end

    def random
      @yoda_quote.random
    end

    def ascii 
      @yoda_quote.ascii
    end
end

example = YodaQuote.new
puts example.ascii
puts example.random