class Zeli::Parser
Public Class Methods
new(raw_curl, curl)
click to toggle source
# File lib/zeli/parser.rb, line 9 def initialize(raw_curl, curl) @raw_curl = raw_curl @curl = curl end
Public Instance Methods
go!()
click to toggle source
# File lib/zeli/parser.rb, line 14 def go! parsers.each do |parser| parser.parse!(@raw_curl, @curl) end @curl end
parsers()
click to toggle source
# File lib/zeli/parser.rb, line 22 def parsers [ UrlParser.new, OptionParser.new('-v'), ParamParser.new('-X'), ParamParser.new('--data'), HeaderParser.new('--header') ] end