Class: Knjappserver::Httpsession::Page_environment

Inherits:
Object
  • Object
show all
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

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

#_bufObject



11
12
13
# File 'lib/include/class_httpsession_page_environment.rb', line 11

def _buf
  return $stdout
end


15
16
17
# File 'lib/include/class_httpsession_page_environment.rb', line 15

def _cookie
  return @args[:httpsession].cookie
end

#_dbObject



19
20
21
# File 'lib/include/class_httpsession_page_environment.rb', line 19

def _db
  return @args[:kas].db_handler
end

#_getObject



23
24
25
# File 'lib/include/class_httpsession_page_environment.rb', line 23

def _get
  return @args[:httpsession].get
end

#_httpsessionObject



37
38
39
# File 'lib/include/class_httpsession_page_environment.rb', line 37

def _httpsession
  return @args[:httpsession]
end

#_httpsession_varObject



41
42
43
# File 'lib/include/class_httpsession_page_environment.rb', line 41

def _httpsession_var
  return @args[:httpsession].httpsession_var
end

#_kasObject Also known as: _requestdata



27
28
29
# File 'lib/include/class_httpsession_page_environment.rb', line 27

def _kas
  return @args[:kas]
end

#_kas_varsObject



33
34
35
# File 'lib/include/class_httpsession_page_environment.rb', line 33

def _kas_vars
  return @args[:kas].vars
end

#_metaObject Also known as: _server



49
50
51
# File 'lib/include/class_httpsession_page_environment.rb', line 49

def _meta
  return @args[:httpsession].meta
end

#_postObject



45
46
47
# File 'lib/include/class_httpsession_page_environment.rb', line 45

def _post
  return @args[:httpsession].post
end

#_sessionObject



55
56
57
# File 'lib/include/class_httpsession_page_environment.rb', line 55

def _session
  return @args[:httpsession].session.sess_data
end

#_session_hashObject



59
60
61
# File 'lib/include/class_httpsession_page_environment.rb', line 59

def _session_hash
  return @args[:httpsession].session_hash
end

#_session_objObject



63
64
65
# File 'lib/include/class_httpsession_page_environment.rb', line 63

def _session_obj
  return @args[:httpsession].session
end

#get_bindingObject



7
8
9
# File 'lib/include/class_httpsession_page_environment.rb', line 7

def get_binding
  return binding
end