Method: Tocmd::Translator#hi
- Defined in:
- lib/tocmd/translator.rb
#hi(no_browser) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/tocmd/translator.rb', line 16 def hi(no_browser) # cp_source_file_to_cur_file ar = @source_file_path.split('/') ar.pop() puts "src path = #{ar.join('/').to_s}" src_path = ar.join('/').to_s ar.push('preview'); dest_dir = ar.join('/').to_s puts "desc path = #{ar.join('/').to_s}" build_with_dir(@source_file_path ,dest_dir) open_in_browser unless no_browser end |