Sha256: 0525a132d02f2de78c7ac9896c7cfbfb416576aa258793ed5f923a3375dffb0c

Contents?: true

Size: 298 Bytes

Versions: 29

Compression:

Stored size: 298 Bytes

Contents

module Yawast
  module Commands
    class Utils
      def self.extract_uri(args)
        raise ArgumentError.new('You must specify a URL.') if args.empty?

        #this might be a bad assumption
        url = args[0]

        return Yawast::Shared::Uri.extract_uri url
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
yawast-0.4.0 lib/commands/utils.rb
yawast-0.4.0.beta5 lib/commands/utils.rb
yawast-0.4.0.beta4 lib/commands/utils.rb
yawast-0.4.0.beta3 lib/commands/utils.rb
yawast-0.4.0.beta2 lib/commands/utils.rb
yawast-0.4.0.beta1 lib/commands/utils.rb
yawast-0.3.0 lib/commands/utils.rb
yawast-0.3.0.beta2 lib/commands/utils.rb
yawast-0.3.0.beta1 lib/commands/utils.rb