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
Post a Comment