class NodeRenderingContext

Public Class Methods

new(properties) click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 354
def initialize(properties)
  # should contain  :node, :path, :description, :indentation
  @properties = OpenStruct.new(properties)
end

Public Instance Methods

[](key) click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 367
def [](key)
  @properties[key]
end
filename() click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 375
def filename
  File.basename(@properties.path)
end
folder() click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 379
def folder
  File.dirname(@properties.path)
end
has_key?(key) click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 371
def has_key?(key)
  @properties.respond_to?(key)
end
method_missing(name, *) click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 359
def method_missing(name, *)
  @properties[name]
end
node() click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 363
def node
  @properties.node
end
relative_folder() click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 383
def relative_folder
  File.dirname(@properties.relative_path)
end
renderer_addons() click to toggle source
# File lib/hiptest-publisher/options_parser.rb, line 387
def renderer_addons
  addons = @properties.renderer_addons || ""

  addons.split.map do |addon_name|
    Hiptest.const_get(addon_name)
  end
end