Created
October 18, 2012 05:56
-
-
Save dribble13/3910105 to your computer and use it in GitHub Desktop.
thor namespace sample 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Foo | |
| class Hoge < Thor | |
| # namespace :foo | |
| desc "hoge", "hogehoge!!" | |
| method_option :delete_flg, :type => :boolean, :aliases => "-d" | |
| def hoge() | |
| p "hoge" | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment