Class: Charyf::Controller::Base
- Defined in:
- lib/charyf/engine/controller/controller.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ Base
constructor
A new instance of Base.
- #unknown ⇒ Object
Methods included from Actions
Methods included from Helpers
#action_name, #controller_name, included, #intent, #request, #session, #skill, #skill_name
Methods included from Renderers
#ensure_responses_for, included, #render_html_response, #render_text_response, #response_folder, #responses_for
Constructor Details
#initialize(context) ⇒ Base
Returns a new instance of Base.
21 22 23 |
# File 'lib/charyf/engine/controller/controller.rb', line 21 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
19 20 21 |
# File 'lib/charyf/engine/controller/controller.rb', line 19 def context @context end |
Instance Method Details
#unknown ⇒ Object
25 26 27 |
# File 'lib/charyf/engine/controller/controller.rb', line 25 def unknown reply text: "I don't know what you meant by '#{request.text}'" end |