Skip to content

Commit

Permalink
Moved default_dsl_options to default_options
Browse files Browse the repository at this point in the history
  • Loading branch information
auser committed Mar 17, 2009
1 parent 6590d55 commit d8e6498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dslify/dslify.rb
@@ -1,7 +1,7 @@
# Quick 1-file dsl accessor
module Dslify
module ClassMethods
def default_dsl_options(hsh={})
def default_options(hsh={})
hsh.each do |meth,_default_def|
class_eval "def #{meth}(n=nil); n ? #{meth}=n : @__h[:#{meth}] end"
class_eval "def #{meth}=(n); @__h[:#{meth}] = n; end"
Expand Down

0 comments on commit d8e6498

Please sign in to comment.