module Shrine::Plugins::AddMetadata::ClassMethods
Public Instance Methods
# File lib/shrine/plugins/add_metadata.rb 12 def add_metadata(name = nil, **options, &block) 13 opts[:add_metadata][:definitions] << [name, options, block] 14 15 metadata_method(name) if name 16 end
Source
# File lib/shrine/plugins/add_metadata.rb 18 def metadata_method(*names) 19 names.each { |name| _metadata_method(name) } 20 end