発表資料はこちら https://www.slideshare.net/tomoyaishida1238/ruby-227588719
!eval s="$><< '!%sl s=%%p'% :eva%s"
https://gist.github.com/tompng/d79e12f3d056cf12c1448a097035bdf3
発表資料はこちら https://www.slideshare.net/tomoyaishida1238/ruby-227588719
!eval s="$><< '!%sl s=%%p'% :eva%s"
https://gist.github.com/tompng/d79e12f3d056cf12c1448a097035bdf3
| Kernel.class_eval do | |
| #FIXME this is terrible | |
| def static(meth) | |
| define_singleton_method(meth) do |*args, &b| | |
| new.send meth, *args, &b | |
| end | |
| meth | |
| end | |
| def abstract(meth) |
| gem | draper | active_decorator |
| 参考URL | Railscast #286 | Rails3レシピブック外伝 recipe 10 |
| 反映タイミング | HogeDecorator 使用時 | view_assigns 時 |
| 関連対応 | decorates_association | partial render 時 |
参考:
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/ | |
| 1.) Open any application | |
| 2.) Press and hold the power button until the slide to shutdown swipe bar appears. | |
| 3.) Release Power button | |
| 4.) Press and hold Home button Lightly | |
| until screen returns to icon screen |