Class: Lucie::Controller::Base
- Inherits:
-
Object
- Object
- Lucie::Controller::Base
- Includes:
- Validators::MandatoryOption, Validators::Optional
- Defined in:
- lib/lucie/controller/base.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(command_line_parser, app) ⇒ Base
constructor
A new instance of Base.
Methods included from Validators::Optional
Methods included from Validators::MandatoryOption
Constructor Details
#initialize(command_line_parser, app) ⇒ Base
Returns a new instance of Base.
22 23 24 25 |
# File 'lib/lucie/controller/base.rb', line 22 def initialize(command_line_parser, app) self.class.params = command_line_parser @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
8 9 10 |
# File 'lib/lucie/controller/base.rb', line 8 def app @app end |
Instance Method Details
#help ⇒ Object
18 19 20 |
# File 'lib/lucie/controller/base.rb', line 18 def help "Help" end |