Class: Rubko::Storage
Instance Attribute Summary
Attributes included from Base
#parent
Instance Method Summary
collapse
Methods inherited from Plugin
#config
Methods included from Base
#camelize, #finalize, #httpGet, #init, #initialize, #jsonParse, #loadController, #loadFile, #loadModel, #loadPlugin, #loadView, #method_missing, #uncamelize
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Rubko::Base
Instance Method Details
#inspect(*path) ⇒ Object
20
21
22
|
# File 'lib/rubko/storage.rb', line 20
def inspect(*path)
_inspect path
end
|
#to_s(*path) ⇒ Object
24
25
26
|
# File 'lib/rubko/storage.rb', line 24
def to_s(*path)
inspect(path) * "\n"
end
|
#values(*path) ⇒ Object
4
5
6
7
8
|
# File 'lib/rubko/storage.rb', line 4
def values(*path)
Hash[ keys(*path).map { |key|
[ key, self[*(path+[key])] ]
} ]
end
|