Class: MimeType
- Inherits:
-
Object
- Object
- MimeType
- Defined in:
- lib/picolena/templates/lib/core_exts.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#exts ⇒ Object
readonly
Returns the value of attribute exts.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exts, mime_name) ⇒ MimeType
constructor
A new instance of MimeType.
Constructor Details
#initialize(exts, mime_name) ⇒ MimeType
Returns a new instance of MimeType.
13 14 15 |
# File 'lib/picolena/templates/lib/core_exts.rb', line 13 def initialize(exts,mime_name) @exts,@name=exts,mime_name end |
Instance Attribute Details
#exts ⇒ Object (readonly)
Returns the value of attribute exts.
11 12 13 |
# File 'lib/picolena/templates/lib/core_exts.rb', line 11 def exts @exts end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/picolena/templates/lib/core_exts.rb', line 11 def name @name end |
Class Method Details
.add(exts, mime_name) ⇒ Object
7 8 9 |
# File 'lib/picolena/templates/lib/core_exts.rb', line 7 def self.add(exts,mime_name) all<<new(exts,mime_name) end |
.all ⇒ Object
3 4 5 |
# File 'lib/picolena/templates/lib/core_exts.rb', line 3 def self.all @@all end |