Module: ROM::Files::Dataset::MimeType
- Included in:
- ROM::Files::Dataset
- Defined in:
- lib/rom/files/dataset/mime_type.rb
Defined Under Namespace
Modules: Initializer
Instance Attribute Summary collapse
-
#mime_type ⇒ MIME::Type?
readonly
MIME-type of files to include.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#mime_type ⇒ MIME::Type? (readonly)
MIME-type of files to include
|
# File 'lib/rom/files/dataset/mime_type.rb', line 31
|
Class Method Details
.included(other) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rom/files/dataset/mime_type.rb', line 10 def self.included(other) super(other) other.module_eval do option :mime_type, Types::MimeType.optional, default: -> { nil } prepend Initializer end end |