Sha256: d2e2eaedff870f2a872408daace21e9a42d73e73bfdda2b2482e8c2252ff97d7

Contents?: true

Size: 304 Bytes

Versions: 203

Compression:

Stored size: 304 Bytes

Contents

class Thor
  class Arguments

    private

    def parse_array(name)
      return shift if peek.is_a?(Array)
      array = []
      while current_is_value?
        results = shift.split(/[\s,]/).reject(&:blank?)
        results.each { |result| array << result  }
      end
      array
    end

  end
end

Version data entries

203 entries across 203 versions & 1 rubygems

Version Path
shelly-0.5.7 lib/thor/arguments.rb
shelly-0.5.6 lib/thor/arguments.rb
shelly-0.5.5 lib/thor/arguments.rb
shelly-0.5.4 lib/thor/arguments.rb
shelly-0.5.3 lib/thor/arguments.rb
shelly-0.5.2 lib/thor/arguments.rb
shelly-0.5.1 lib/thor/arguments.rb
shelly-0.5.0 lib/thor/arguments.rb
shelly-0.4.42 lib/thor/arguments.rb
shelly-0.4.41 lib/thor/arguments.rb
shelly-0.4.40 lib/thor/arguments.rb
shelly-0.4.39 lib/thor/arguments.rb
shelly-0.4.38 lib/thor/arguments.rb
shelly-0.4.37 lib/thor/arguments.rb
shelly-0.4.36 lib/thor/arguments.rb
shelly-0.4.35 lib/thor/arguments.rb
shelly-0.4.34 lib/thor/arguments.rb
shelly-0.4.33 lib/thor/arguments.rb
shelly-0.4.32 lib/thor/arguments.rb
shelly-0.4.31 lib/thor/arguments.rb