Class: Phuby::Events
- Inherits:
-
Object
- Object
- Phuby::Events
- Defined in:
- lib/phuby/events.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#header(header, op) ⇒ Object
Called when PHP wants to manipulate headers.
-
#send_headers(response_code) ⇒ Object
Called when PHP wants to send response headers with
response_code
. -
#write(string) ⇒ Object
Called when PHP wants to write something out.
Instance Method Details
#header(header, op) ⇒ Object
Called when PHP wants to manipulate headers
11 12 |
# File 'lib/phuby/events.rb', line 11 def header header, op end |
#send_headers(response_code) ⇒ Object
Called when PHP wants to send response headers with response_code
16 17 |
# File 'lib/phuby/events.rb', line 16 def send_headers response_code end |
#write(string) ⇒ Object
Called when PHP wants to write something out
5 6 7 |
# File 'lib/phuby/events.rb', line 5 def write string $stdout.write string end |