Class: IRuby::ResponseWithMime

Inherits:
Object
  • Object
show all
Defined in:
lib/iruby/kernel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mimeObject (readonly)

Returns the value of attribute mime.



24
25
26
# File 'lib/iruby/kernel.rb', line 24

def mime
  @mime
end

Instance Method Details

#inspectObject



25
26
27
# File 'lib/iruby/kernel.rb', line 25

def inspect
  @response.inspect
end

#to_sObject



28
29
30
# File 'lib/iruby/kernel.rb', line 28

def to_s
  @response.to_s
end