Public Instance methods
add_metadata(name = nil, **options, &block)
[show source]
# 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
metadata_method(*names)
[show source]
# File lib/shrine/plugins/add_metadata.rb 18 def metadata_method(*names) 19 names.each { |name| _metadata_method(name) } 20 end