class Attributes

file: rexleparser.rb description: used by rexle.rb

Public Class Methods

new(h={}) click to toggle source
Calls superclass method
# File lib/rexleparser.rb, line 34
def initialize(h={})
  super().merge! h
end

Public Instance Methods

[]=(k,v) click to toggle source
Calls superclass method
# File lib/rexleparser.rb, line 38
def []=(k,v)
  super(k, k != :class ? Value.new(v) : v)
end
delete(key=nil) click to toggle source
Calls superclass method
# File lib/rexleparser.rb, line 42
def delete(key=nil)

  if key then
    super(key)
  else
    keys.each {|key| super(key)}
  end

end
merge(h) click to toggle source
Calls superclass method
# File lib/rexleparser.rb, line 52
def merge(h)

  h2 = h.inject({}) do |r, kv| 
    k, raw_v = kv
    v = raw_v.is_a?(String) ? Value.new(raw_v) : raw_v
    r.merge(k => v) 
  end
  
  super(h2)
  
end