Module: USaidWat::Thing::HashBackedIvars

Included in:
About, Comment, Submission
Defined in:
lib/usaidwat/thing.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



10
11
12
13
14
# File 'lib/usaidwat/thing.rb', line 10

def method_missing(symbol, *args, &block)
  res = @data[symbol.to_s]
  return res unless res.nil?
  super
end