Class: Knjappserver::Httpsession::Page_environment
- Inherits:
-
Object
- Object
- Knjappserver::Httpsession::Page_environment
- Defined in:
- lib/include/class_httpsession_page_environment.rb
Overview
This class handels all the magic-methods in a different way - by defining them as methods on the binding for the .rhtml-pages.
Instance Method Summary collapse
- #_buf ⇒ Object
- #_cookie ⇒ Object
- #_db ⇒ Object
- #_get ⇒ Object
- #_httpsession ⇒ Object
- #_httpsession_var ⇒ Object
- #_kas ⇒ Object (also: #_requestdata)
- #_kas_vars ⇒ Object
- #_meta ⇒ Object (also: #_server)
- #_post ⇒ Object
- #_session ⇒ Object
- #_session_hash ⇒ Object
- #_session_obj ⇒ Object
- #get_binding ⇒ Object
-
#initialize(args = {}) ⇒ Page_environment
constructor
A new instance of Page_environment.
Constructor Details
#initialize(args = {}) ⇒ Page_environment
Returns a new instance of Page_environment.
3 4 5 |
# File 'lib/include/class_httpsession_page_environment.rb', line 3 def initialize(args = {}) @args = args end |
Instance Method Details
#_buf ⇒ Object
11 12 13 |
# File 'lib/include/class_httpsession_page_environment.rb', line 11 def _buf return $stdout end |
#_cookie ⇒ Object
15 16 17 |
# File 'lib/include/class_httpsession_page_environment.rb', line 15 def return @args[:httpsession]. end |
#_db ⇒ Object
19 20 21 |
# File 'lib/include/class_httpsession_page_environment.rb', line 19 def _db return @args[:kas].db_handler end |
#_get ⇒ Object
23 24 25 |
# File 'lib/include/class_httpsession_page_environment.rb', line 23 def _get return @args[:httpsession].get end |
#_httpsession ⇒ Object
37 38 39 |
# File 'lib/include/class_httpsession_page_environment.rb', line 37 def _httpsession return @args[:httpsession] end |
#_httpsession_var ⇒ Object
41 42 43 |
# File 'lib/include/class_httpsession_page_environment.rb', line 41 def _httpsession_var return @args[:httpsession].httpsession_var end |
#_kas ⇒ Object Also known as: _requestdata
27 28 29 |
# File 'lib/include/class_httpsession_page_environment.rb', line 27 def _kas return @args[:kas] end |
#_kas_vars ⇒ Object
33 34 35 |
# File 'lib/include/class_httpsession_page_environment.rb', line 33 def _kas_vars return @args[:kas].vars end |
#_meta ⇒ Object Also known as: _server
49 50 51 |
# File 'lib/include/class_httpsession_page_environment.rb', line 49 def return @args[:httpsession]. end |
#_post ⇒ Object
45 46 47 |
# File 'lib/include/class_httpsession_page_environment.rb', line 45 def _post return @args[:httpsession].post end |
#_session ⇒ Object
55 56 57 |
# File 'lib/include/class_httpsession_page_environment.rb', line 55 def _session return @args[:httpsession].session.sess_data end |
#_session_hash ⇒ Object
59 60 61 |
# File 'lib/include/class_httpsession_page_environment.rb', line 59 def _session_hash return @args[:httpsession].session_hash end |
#_session_obj ⇒ Object
63 64 65 |
# File 'lib/include/class_httpsession_page_environment.rb', line 63 def _session_obj return @args[:httpsession].session end |
#get_binding ⇒ Object
7 8 9 |
# File 'lib/include/class_httpsession_page_environment.rb', line 7 def get_binding return binding end |