| 1 | 5 | ▶ | use v5.40; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 5 | ▶ | use experimental 'class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 5 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 5 | ▶ | class Minima::View::PlainText :isa(Minima::View); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 8 | ▶ | method prepare_response ($response) |
|
Subroutine
prepare_response: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | { | ||
| 10 | 8 | $response->content_type('text/plain; charset=utf-8'); | |
| 11 | } | ||
| 12 | |||
| 13 | 10 | ▶ | method render ($data = '') |
|
Subroutine
render: called CC=2 SCAR=6.9
Pod
documented
| |||
| 14 | { | ||
| 15 | 10 | utf8::encode($data); | |
| 16 | 10 | $data; | |
| 17 | } | ||
| 18 | |||
| 19 | __END__ | ||