Class: Wxp::Command::Op::Gems
- Inherits:
-
Wxp::Command::Op
- Object
- CLAide::Command
- Wxp::Command
- Wxp::Command::Op
- Wxp::Command::Op::Gems
- Defined in:
- lib/wxp/command/op/gems.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Gems
constructor
A new instance of Gems.
- #openGems ⇒ Object
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Wxp::Command
Constructor Details
#initialize(argv) ⇒ Gems
Returns a new instance of Gems.
14 15 16 |
# File 'lib/wxp/command/op/gems.rb', line 14 def initialize(argv) super end |
Instance Method Details
#openGems ⇒ Object
26 27 28 29 |
# File 'lib/wxp/command/op/gems.rb', line 26 def openGems puts 'gem路径为:/Library/Ruby/Gems/'.green system 'open /Library/Ruby/Gems/' end |
#run ⇒ Object
22 23 24 |
# File 'lib/wxp/command/op/gems.rb', line 22 def run openGems end |
#validate! ⇒ Object
18 19 20 |
# File 'lib/wxp/command/op/gems.rb', line 18 def validate! super end |