Refactor micropub specific things out to a slice
This commit is contained in:
13
slices/micropub/types.rb
Normal file
13
slices/micropub/types.rb
Normal 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
|
Reference in New Issue
Block a user