Sha256: 36e2bbd3d0efc92cf83b4a8de0c4215a0f49fa9b0967cd5972166ce9a0e11158
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 Bytes
Contents
module Relevance module Tarantula class Form extend Forwardable def_delegators("@tag", :search) attr_accessor :crawler, :referrer def initialize(tag, crawler, referrer) @tag, @crawler, @referrer = tag, crawler, referrer end def action @tag['action'] end def meth (rails_method_hack or @tag['method'] or 'get').downcase end def rails_method_hack (tag = @tag.at('input[@name="_method"]')) && tag["value"] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems