Module: Code2rubylearning
- Extended by:
- Code2rubylearning
- Included in:
- Code2rubylearning
- Defined in:
- lib/code2rubylearning.rb,
lib/code2rubylearning/filter.rb,
lib/code2rubylearning/version.rb,
lib/code2rubylearning/filehandling.rb
Defined Under Namespace
Classes: FileHandling, Filter
Constant Summary collapse
- VERSION =
"0.1.8"
Instance Method Summary collapse
Instance Method Details
#start(files, options) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/code2rubylearning.rb', line 10 def start files, @buffer = "" files.each do |file| current_file = FileHandling.new(file, ) if current_file.name filter = Filter.new(current_file, ) @buffer << filter.apply end end if [:prg_link] @buffer << %Q|<a href="https://github.com/rudicode/code2rubylearning/wiki">Posted with code2rubylearning v#{ VERSION }</a>\n| end Clippy.copy @buffer unless @buffer.empty? puts @buffer if [:stdout] @buffer end |