Skip to content

Commit

Permalink
Reverse hud DSL like scene DSL where type is the method and name is t…
Browse files Browse the repository at this point in the history
…he first argument
  • Loading branch information
enebo committed Jun 17, 2011
1 parent 4c85ddd commit 6431b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/threepence/ardor3d/extension/ui.rb
Expand Up @@ -26,7 +26,7 @@ def layout(&code)
code.arity == 1 ? code[self] : self.instance_eval(&code) if block_given?
end

def method_missing(name, type, *args, &code)
def method_missing(type, name, *args, &code)
ui = instantiate_uigoodie(type, *args, &code)
ui.name = name.to_s if ui.respond_to? :name

Expand Down

0 comments on commit 6431b00

Please sign in to comment.