Class: IRuby::ResponseWithMime
- Inherits:
-
Object
- Object
- IRuby::ResponseWithMime
- Defined in:
- lib/iruby/kernel.rb
Instance Attribute Summary collapse
-
#mime ⇒ Object
readonly
Returns the value of attribute mime.
Instance Method Summary collapse
-
#initialize(response, mime) ⇒ ResponseWithMime
constructor
A new instance of ResponseWithMime.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(response, mime) ⇒ ResponseWithMime
Returns a new instance of ResponseWithMime.
20 21 22 23 |
# File 'lib/iruby/kernel.rb', line 20 def initialize(response, mime) @response = response @mime = mime end |
Instance Attribute Details
#mime ⇒ Object (readonly)
Returns the value of attribute mime.
24 25 26 |
# File 'lib/iruby/kernel.rb', line 24 def mime @mime end |
Instance Method Details
#inspect ⇒ Object
25 26 27 |
# File 'lib/iruby/kernel.rb', line 25 def inspect @response.inspect end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/iruby/kernel.rb', line 28 def to_s @response.to_s end |