class Capistrano::Template::Bindings::HashBinding

Public Class Methods

new(hash) click to toggle source
# File lib/capistrano/template/bindings/hash_binding.rb, line 6
def initialize(hash)
  @hash = hash
end

Public Instance Methods

exists?(variable) click to toggle source
# File lib/capistrano/template/bindings/hash_binding.rb, line 10
def exists?(variable)
  @hash.has_key?(variable)
end
fetch(variable) click to toggle source
# File lib/capistrano/template/bindings/hash_binding.rb, line 14
def fetch(variable)
  @hash.fetch(variable)
end