update lexbor
This commit is contained in:
parent
f62c04949a
commit
8d2b62f272
@ -1,3 +1,4 @@
|
|||||||
|
require "lexbor"
|
||||||
require "./mechanize/http/agent"
|
require "./mechanize/http/agent"
|
||||||
require "./mechanize/form"
|
require "./mechanize/form"
|
||||||
require "./mechanize/node"
|
require "./mechanize/node"
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
require "lexbor"
|
|
||||||
|
|
||||||
class Mechanize
|
class Mechanize
|
||||||
# This is a fake node used when sending post request.
|
# This is a fake node used when sending post request.
|
||||||
class Node < Hash(String, String)
|
class Node < Hash(String, String)
|
||||||
@ -12,13 +10,3 @@ class Mechanize
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# This is a real Node got from html.
|
|
||||||
# TODO: create PR to https://github.com/kostya/lexbor
|
|
||||||
struct Lexbor::Node
|
|
||||||
delegate :[], to: attributes
|
|
||||||
delegate :[]=, to: attributes
|
|
||||||
delegate :[]?, to: attributes
|
|
||||||
delegate :fetch, to: attributes
|
|
||||||
delegate :has_key?, to: attributes
|
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user