Class: Filebase
- Inherits:
-
Object
- Object
- Filebase
- Defined in:
- lib/filebase.rb,
lib/drivers/yaml.rb,
lib/filebase/model.rb
Defined Under Namespace
Constant Summary collapse
- Error =
RuntimeError
Class Attribute Summary collapse
-
.storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
-
#initialize(root = '.', storage = nil) ⇒ Filebase
constructor
A new instance of Filebase.
-
#method_missing(name, *args) ⇒ Object
delegate everything to the storage object …
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
delegate everything to the storage object …
10 |
# File 'lib/filebase.rb', line 10 def method_missing( name,*args ) ; @storage.send( name, *args ) ; end |
Class Attribute Details
.storage ⇒ Object
Returns the value of attribute storage.
4 5 6 |
# File 'lib/filebase.rb', line 4 def storage @storage end |