From 8d2b62f27215100646c01677d26a0c608ac0ef2c Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Thu, 18 Nov 2021 11:21:39 +0200 Subject: [PATCH] update lexbor --- src/mechanize.cr | 1 + src/mechanize/node.cr | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/mechanize.cr b/src/mechanize.cr index 092b116..d728b10 100644 --- a/src/mechanize.cr +++ b/src/mechanize.cr @@ -1,3 +1,4 @@ +require "lexbor" require "./mechanize/http/agent" require "./mechanize/form" require "./mechanize/node" diff --git a/src/mechanize/node.cr b/src/mechanize/node.cr index df0da0b..5367aaa 100644 --- a/src/mechanize/node.cr +++ b/src/mechanize/node.cr @@ -1,5 +1,3 @@ -require "lexbor" - class Mechanize # This is a fake node used when sending post request. class Node < Hash(String, String) @@ -12,13 +10,3 @@ class Mechanize 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