Class: Temper::StringIO

Inherits:
Base
  • Object
show all
Defined in:
lib/temper.rb

Instance Attribute Summary

Attributes inherited from Base

#content_type, #original_filename

Instance Method Summary collapse

Methods inherited from Base

#fingerprint, #method_missing, #respond_to?

Constructor Details

#initialize(options = {}) ⇒ StringIO

Returns a new instance of StringIO.



75
76
77
78
# File 'lib/temper.rb', line 75

def initialize(options = {})
  @storage = ::StringIO.new(options[:content].to_s)
  super options.merge(:original_filename => "stringio.txt")
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Temper::Base