class Capistrano::Slnky::Helpers::ERBNamespace

Helper class to pass local variables to an ERB template

Public Class Methods

new(hash) click to toggle source
# File lib/capistrano/slnky/helpers.rb, line 44
def initialize(hash)
  hash.each do |key, value|
    singleton_class.send(:define_method, key) { value }
  end
end

Public Instance Methods

get_binding() click to toggle source
# File lib/capistrano/slnky/helpers.rb, line 50
def get_binding
  binding
end