Class: Capistrano::Former03::Namespace
- Inherits:
-
Object
- Object
- Capistrano::Former03::Namespace
- Defined in:
- lib/capistrano/former03/mysql.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(hash) ⇒ Namespace
constructor
A new instance of Namespace.
Constructor Details
#initialize(hash) ⇒ Namespace
Returns a new instance of Namespace.
6 7 8 9 10 |
# File 'lib/capistrano/former03/mysql.rb', line 6 def initialize(hash) hash.each do |key, value| singleton_class.send(:define_method, key) { value } end end |
Instance Method Details
#get_binding ⇒ Object
12 13 14 |
# File 'lib/capistrano/former03/mysql.rb', line 12 def get_binding binding end |