Class: DohDb::RowDisplayProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/doh/mysql/smart_row.rb

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ RowDisplayProxy

Returns a new instance of RowDisplayProxy.



8
9
10
# File 'lib/doh/mysql/smart_row.rb', line 8

def initialize(row)
  @row = row
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *ignore_args) ⇒ Object



12
13
14
# File 'lib/doh/mysql/smart_row.rb', line 12

def method_missing(sym, *ignore_args)
  @row.send(sym.to_s).to_display
end