class Array

Array extensions

Public Instance Methods

clone() click to toggle source

Do a deep copy on the object

# File lib/nub/core.rb, line 131
def clone
  return self.map{|x| x.clone }
end
erb(vars = {}) click to toggle source

Easily inject ERB variables into Array values

vars

hash of variables to inject into the string

# File lib/nub/core.rb, line 137
def erb(vars = {})
  ERBResolve.new(vars).resolve(self)
end
erb!(vars = {}) click to toggle source

Easily inject ERB variables into Array values

vars

hash of variables to inject into the string

# File lib/nub/core.rb, line 143
def erb!(vars = {})
  ERBResolve.new(vars).resolve!(self)
end