Class: Archive
- Inherits:
-
Object
- Object
- Archive
- Defined in:
- lib/archive.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Archive
constructor
A new instance of Archive.
- #method_missing(name, *args) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
30 31 32 |
# File 'lib/archive.rb', line 30 def method_missing name, *args StringIO.new @type.send(name, *args) end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
22 23 24 |
# File 'lib/archive.rb', line 22 def type @type end |