Top Level Namespace
Defined Under Namespace
Modules: HTML2FB Classes: AtomPost, NilClass, String
Instance Method Summary collapse
Instance Method Details
#ask(txt, disp = 'Prompt') ⇒ Object
119 120 121 122 123 124 125 126 127 |
# File 'lib/Html2Feedbooks/feedbooks.rb', line 119 def ask(txt,disp='Prompt') return txt unless txt.nil? || txt =='#ask#' begin txt=nil print disp+' : ' txt=STDIN.readline.strip end while txt.nil? || txt.size==0 txt end |