update lexbor

master
Anton Maminov 2021-11-18 11:21:39 +02:00
parent f62c04949a
commit 8d2b62f272
2 changed files with 1 additions and 12 deletions

View File

@ -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"

View File

@ -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