From 955739e2a7be70e6abf7e95710ffe0f4a9c64481 Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 12 Nov 2024 21:26:10 +0100 Subject: feat: rename modules --- lib/osugiru/ruleset.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/osugiru/ruleset.rb (limited to 'lib/osugiru/ruleset.rb') diff --git a/lib/osugiru/ruleset.rb b/lib/osugiru/ruleset.rb new file mode 100644 index 0000000..a9bac16 --- /dev/null +++ b/lib/osugiru/ruleset.rb @@ -0,0 +1,11 @@ +module Osugiru + RuleSet = Struct.new(:name, :rule) do + def messages + Messages.new(db: Osugiru.db) + end + + def run + instance_eval(&rule) + end + end +end -- cgit v1.2.3