rubygems - Initialize gem Artii on a File (Ruby) -



rubygems - Initialize gem Artii on a File (Ruby) -

i know can initialize artii on cmd with:

artii "word"

and word appears, cant find how straight .rb file.

artii::base#asciify returns formatted string:

require 'artii' = artii::base.new a.asciify('word') #=> " _ \n | |\n __ _____ _ __ __| |\n \\ \\ /\\ / / _ \\| '__/ _` |\n \\ v v / (_) | | | (_| |\n \\_/\\_/ \\___/|_| \\__,_|\n \n "

you have print in order see formatting:

puts a.asciify('word')

output:

class="lang-none prettyprint-override"> _ | | __ _____ _ __ __| | \ \ /\ / / _ \| '__/ _` | \ v v / (_) | | | (_| | \_/\_/ \___/|_| \__,_|

ruby rubygems

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -