Skip to content

Commit

Permalink
Namespace: take block arguments into consideration.
Browse files Browse the repository at this point in the history
  • Loading branch information
syu-id committed Jan 20, 2014
1 parent 2a95249 commit 1f8f899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ncurses_sugar.rb
Expand Up @@ -323,11 +323,11 @@ def self.append_features(target)
unless target.respond_to?(:pre_Ncurses_method_missing)
target.module_eval{
alias pre_Ncurses_method_missing method_missing
def method_missing(name, *args)
def method_missing(name, *args, &block)
if Ncurses.respond_to?(name)
Ncurses.send(name, *args)
Ncurses.send(name, *args, &block)
else
pre_Ncurses_method_missing(name, *args)
pre_Ncurses_method_missing(name, *args, &block)
end
end
}
Expand Down

0 comments on commit 1f8f899

Please sign in to comment.