class Formdown::CLI
Public Instance Methods
render()
click to toggle source
# File lib/formdown/cli.rb, line 6 def render if $stdin.tty? error "Pipe Formdown into this command. Example: `$ echo 'Email: ____@(Email)' | formdown render`" else puts Formdown::Renderer.new($stdin.read).to_html end end
version()
click to toggle source
# File lib/formdown/cli.rb, line 15 def version puts Formdown::VERSION end