Class: Semaph::Commands::ReloadCommand
- Inherits:
-
Object
- Object
- Semaph::Commands::ReloadCommand
- Defined in:
- lib/semaph/commands/reload_command.rb
Instance Attribute Summary collapse
-
#help ⇒ Object
readonly
Returns the value of attribute help.
Instance Method Summary collapse
- #execute(_whatever) ⇒ Object
-
#initialize ⇒ ReloadCommand
constructor
A new instance of ReloadCommand.
Constructor Details
#initialize ⇒ ReloadCommand
Returns a new instance of ReloadCommand.
6 7 8 |
# File 'lib/semaph/commands/reload_command.rb', line 6 def initialize @help = "reload all code" end |
Instance Attribute Details
#help ⇒ Object (readonly)
Returns the value of attribute help.
4 5 6 |
# File 'lib/semaph/commands/reload_command.rb', line 4 def help @help end |
Instance Method Details
#execute(_whatever) ⇒ Object
10 11 12 13 14 |
# File 'lib/semaph/commands/reload_command.rb', line 10 def execute(_whatever) Dir["lib/**/*.rb"].each do |path| load path end end |