Refactor micropub specific things out to a slice

This commit is contained in:
2023-11-15 18:55:57 +11:00
parent 730ecb9ea4
commit 5b133363b3
63 changed files with 468 additions and 174 deletions

13
slices/micropub/types.rb Normal file
View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
require "dry/types"
module Micropub
Types = Dry.Types
module Types
class Tag < Dry::Struct
attribute :label, Types::Coercible::String
end
end
end