This commit is contained in:
Kanezoh 2021-10-09 21:42:14 +09:00
parent b32fbeab84
commit ff6b9d0d94
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ require "./form/select_list"
require "./utils/element_matcher"
class MechanizeCr::Form
include MechanzeCr::ElementMatcher
include MechanizeCr::ElementMatcher
getter node : Node | Lexbor::Node
getter fields : Array(FormContent::Field)

View File

@ -3,7 +3,7 @@ require "./utils/element_matcher"
require "./page/link"
class MechanizeCr::Page < MechanizeCr::File
include MechanzeCr::ElementMatcher
include MechanizeCr::ElementMatcher
delegate :css, to: parser
property mech : Mechanize

View File

@ -1,4 +1,4 @@
module MechanzeCr::ElementMatcher
module MechanizeCr::ElementMatcher
macro elements_with(singular, plural = "")
{% plural = "#{singular.id}s" if plural.empty? %}
def {{plural.id}}_with(criteria)