Method: Windy::Row#method_missing

Defined in:
lib/windy.rb

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



290
291
292
293
294
295
296
297
# File 'lib/windy.rb', line 290

def method_missing(method, *args, &block)
  name = method.to_s.gsub('_', ' ')
  if collection.column_index(name)
    self[name]
  else
    super
  end
end