From ff6b9d0d94ffc80eba595147726595c073611fb1 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Sat, 9 Oct 2021 21:42:14 +0900 Subject: [PATCH] fix typo --- src/mechanize/form.cr | 2 +- src/mechanize/page.cr | 2 +- src/mechanize/utils/element_matcher.cr | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mechanize/form.cr b/src/mechanize/form.cr index 1edb015..86da5bb 100644 --- a/src/mechanize/form.cr +++ b/src/mechanize/form.cr @@ -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) diff --git a/src/mechanize/page.cr b/src/mechanize/page.cr index 4b7a474..c725007 100644 --- a/src/mechanize/page.cr +++ b/src/mechanize/page.cr @@ -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 diff --git a/src/mechanize/utils/element_matcher.cr b/src/mechanize/utils/element_matcher.cr index afba093..9194016 100644 --- a/src/mechanize/utils/element_matcher.cr +++ b/src/mechanize/utils/element_matcher.cr @@ -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)