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