Sha256: 6814c165abd54a9fbfbd699f7a0c50746e23a0cdeec6f19afffd02dd9b505a74
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
class Relevance::Tarantula::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'].downcase end def method (rails_method_hack or @tag['method'] or 'get').downcase end def rails_method_hack (tag = @tag.at('input[@name="_method"]')) && tag["value"] end end
Version data entries
5 entries across 5 versions & 4 rubygems