Method: StreamSend::Resource#method_missing

Defined in:
lib/streamsend.rb

#method_missing(method, *args, &block) ⇒ Object



24
25
26
27
28
29
30
31
32
# File 'lib/streamsend.rb', line 24

def method_missing(method, *args, &block)
  if method.to_s.match(/^(.*)=$/)
    @data[$1] = *args
  elsif @data.has_key?(method.to_s)
    @data[method.to_s]
  else
    super
  end
end