Class: Temper::StringIO
Instance Attribute Summary
Attributes inherited from Base
#content_type, #original_filename
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ StringIO
constructor
A new instance of StringIO.
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( = {}) @storage = ::StringIO.new([:content].to_s) super .merge(:original_filename => "stringio.txt") end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Temper::Base