module LoremKnight

trap(“SIGINT”) { exit! }

Constants

ABOUT
VERSION

Public Class Methods

configure_lorem(options, panther) click to toggle source
# File lib/lorem-knight/cli.rb, line 15
def self.configure_lorem(options, panther)
  panther.set_content_type(options[:html] ? 'html' : 'raw')
  panther.has_pre_sentence = options[:pre]
end
show_and_copy(lorem) click to toggle source
# File lib/lorem-knight/cli.rb, line 10
def self.show_and_copy(lorem)
  puts "#{lorem}".color("#DCE35F")
  Clipboard.copy(lorem)
end