Class: Lucie::App
- Inherits:
-
Object
- Object
- Lucie::App
- Defined in:
- lib/lucie/app.rb
Constant Summary collapse
- @@raise_exception =
false
- @@log_level =
:info
Class Attribute Summary collapse
-
.log_level ⇒ Object
Returns the value of attribute log_level.
-
.raise_exception ⇒ Object
Returns the value of attribute raise_exception.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Class Method Summary collapse
Instance Method Summary collapse
- #exit_value ⇒ Object
-
#initialize(command, root) ⇒ App
constructor
A new instance of App.
- #start ⇒ Object
Constructor Details
Class Attribute Details
.log_level ⇒ Object
Returns the value of attribute log_level.
30 31 32 |
# File 'lib/lucie/app.rb', line 30 def log_level @log_level end |
.raise_exception ⇒ Object
Returns the value of attribute raise_exception.
29 30 31 |
# File 'lib/lucie/app.rb', line 29 def raise_exception @raise_exception end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
4 5 6 |
# File 'lib/lucie/app.rb', line 4 def command @command end |
#root ⇒ Object
Returns the value of attribute root.
5 6 7 |
# File 'lib/lucie/app.rb', line 5 def root @root end |
Class Method Details
Instance Method Details
#exit_value ⇒ Object
24 25 26 |
# File 'lib/lucie/app.rb', line 24 def exit_value @exit_value end |
#start ⇒ Object
20 21 22 |
# File 'lib/lucie/app.rb', line 20 def start help? ? call_help : call_method_invoking_process end |