module Rake::ToolkitProgram::ShellwordsExt

Public Instance Methods

split(s, drop_comment: false) click to toggle source
Calls superclass method
# File lib/rake/toolkit_program/utils.rb, line 39
def split(s, drop_comment: false)
  super(s).tap do |r|
    break r[0..((r.index {|i| i.start_with?('#')} || 0) - 1)] if drop_comment
  end
end