Class: NodeRenderingContext
- Inherits:
-
Object
- Object
- NodeRenderingContext
show all
- Defined in:
- lib/hiptest-publisher/options_parser.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of NodeRenderingContext.
242
243
244
245
|
# File 'lib/hiptest-publisher/options_parser.rb', line 242
def initialize(properties)
@properties = OpenStruct.new(properties)
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
247
248
249
|
# File 'lib/hiptest-publisher/options_parser.rb', line 247
def method_missing(name, *)
@properties[name]
end
|
Instance Method Details
#[](key) ⇒ Object
255
256
257
|
# File 'lib/hiptest-publisher/options_parser.rb', line 255
def [](key)
@properties[key]
end
|
#filename ⇒ Object
263
264
265
|
# File 'lib/hiptest-publisher/options_parser.rb', line 263
def filename
File.basename(@properties.path)
end
|
#has_key?(key) ⇒ Boolean
259
260
261
|
# File 'lib/hiptest-publisher/options_parser.rb', line 259
def has_key?(key)
@properties.respond_to?(key)
end
|
#node ⇒ Object
251
252
253
|
# File 'lib/hiptest-publisher/options_parser.rb', line 251
def node
@properties.node
end
|