Permalink
Browse files

Edited notebook_widget/notebook_widget_example.rb via GitHub

  • Loading branch information...
1 parent 154e24c commit 2c0050f861b48fb04e782e4984968ab6b1714808 @lljk committed Aug 22, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 notebook_widget/notebook_widget_example.rb
@@ -8,9 +8,7 @@ def initialize(name)
end
def add
- @body.append do
- yield
- end
+ @body.append{yield}
end
end
@@ -29,9 +27,7 @@ def initialize(first_page)
end
def add_page(name)
- @f.append{
- @tab = button(name)
- }
+ @f.append{@tab = button(name)}
@pages[name] = page(name)

0 comments on commit 2c0050f

Please sign in to comment.