Class: RQ::ResourceManager

Inherits:
Object
  • Object
show all
Defined in:
lib/rq/resourcemanager.rb

Overview

require INCDIR + ‘rq’

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path path.to_s
  @ystore = YAML::Store.new @path
#--}}}
end

Instance Attribute Details

#pathObject (readonly)

–{{{



22
23
24
# File 'lib/rq/resourcemanager.rb', line 22

def path
  @path
end

#ystoreObject (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

Returns:

  • (Boolean)


32
33
34
35
# File 'lib/rq/resourcemanager.rb', line 32

def valid? expr
#--{{{
#--}}}
end