# File lib/erubis/context.rb, line 59 def to_hash hash = {} self.keys.each { |key| hash[key] = self[key] } return hash end