class XymonClient::ERBContext

Class container for isolating context for ERB templating

Public Class Methods

new(hash) click to toggle source
# File lib/xymonclient/helpers.rb, line 33
def initialize(hash)
  hash.each_pair do |key, value|
    instance_variable_set('@' + key.to_s, value)
  end
end

Public Instance Methods

context() click to toggle source
# File lib/xymonclient/helpers.rb, line 39
def context
  binding
end