Class: Configuration::HandlerStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/httpimagestore/configuration/handler.rb

Defined Under Namespace

Modules: ConditionalInclusion, ImageName, PathSpec

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(global, *args) ⇒ HandlerStatement

Returns a new instance of HandlerStatement.



246
247
248
249
250
# File 'lib/httpimagestore/configuration/handler.rb', line 246

def initialize(global, *args)
	@global = global
	@config_locals = {}
	@module_args = args
end

Instance Attribute Details

#config_localsObject (readonly)

Returns the value of attribute config_locals.



252
253
254
# File 'lib/httpimagestore/configuration/handler.rb', line 252

def config_locals
  @config_locals
end

Instance Method Details

#config_local(name, value) ⇒ Object



253
254
255
# File 'lib/httpimagestore/configuration/handler.rb', line 253

def config_local(name, value)
	@config_locals[name] = value
end

#path_template(path_spec) ⇒ Object



257
258
259
# File 'lib/httpimagestore/configuration/handler.rb', line 257

def path_template(path_spec)
	@global.paths[path_spec]
end