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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -