Class: Uniconvert::Setup
- Inherits:
-
Object
- Object
- Uniconvert::Setup
- Defined in:
- lib/uniconvert/setup.rb
Instance Method Summary collapse
Instance Method Details
#execute_conversion ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/uniconvert/setup.rb', line 10 def execute_conversion str = Pathname.new(ARGV[0]) if str.readable? Uniconvert.file_to(:HTML, str) else Notify.spacer Notify.success("Converted text below") Notify.spacer Notify.spit(Uniconvert.str_to(:HTML, str)) Notify.spacer end end |
#load_converters ⇒ Object
4 5 6 7 8 |
# File 'lib/uniconvert/setup.rb', line 4 def load_converters Dir['lib/uniconvert/converters/*'].each do |f| require_relative "../../#{f}" end end |