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
#close, #fingerprint, #method_missing, #respond_to?
Constructor Details
#initialize(options = {}) ⇒ StringIO
Returns a new instance of StringIO.
3 4 5 6 7 |
# File 'lib/temper/stringio.rb', line 3 def initialize( = {}) @storage = ::StringIO.new([:content].to_s) [:original_filename] ||= "stringio.txt" super .merge() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Temper::Base