Class: RQ::ResourceManager
- Inherits:
-
Object
- Object
- RQ::ResourceManager
- Defined in:
- lib/rq/resourcemanager.rb
Overview
require INCDIR + ‘rq’
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
–{{{.
-
#ystore ⇒ Object
readonly
Returns the value of attribute ystore.
Instance Method Summary collapse
-
#initialize(path) ⇒ ResourceManager
constructor
A new instance of ResourceManager.
- #valid?(expr) ⇒ Boolean
Constructor Details
#initialize(path) ⇒ ResourceManager
Returns a new instance of ResourceManager.
25 26 27 28 29 30 |
# File 'lib/rq/resourcemanager.rb', line 25 def initialize path #--{{{ @path = File. path.to_s @ystore = YAML::Store.new @path #--}}} end |
Instance Attribute Details
#path ⇒ Object (readonly)
–{{{
22 23 24 |
# File 'lib/rq/resourcemanager.rb', line 22 def path @path end |
#ystore ⇒ Object (readonly)
Returns the value of attribute ystore.
23 24 25 |
# File 'lib/rq/resourcemanager.rb', line 23 def ystore @ystore end |
Instance Method Details
#valid?(expr) ⇒ Boolean
32 33 34 35 |
# File 'lib/rq/resourcemanager.rb', line 32 def valid? expr #--{{{ #--}}} end |