Method: Invoicing::LineItem::ClassInfo#method

Defined in:
lib/invoicing/line_item.rb

#method(name) ⇒ Object

Allow methods generated by CurrencyValue to be renamed as well



252
253
254
255
256
257
258
# File 'lib/invoicing/line_item.rb', line 252

def method(name)
  if name.to_s =~ /^(.*)_formatted$/
    "#{super($1)}_formatted"
  else
    super
  end
end