Method: MTP::Properties#method_missing

Defined in:
lib/mtp/properties.rb

#method_missing(method, *args) ⇒ Object



39
40
41
42
43
44
45
46
47
# File 'lib/mtp/properties.rb', line 39

def method_missing(method, *args)
  method = method.to_s
  if method[-1,1] == '='
    method.slice!(-1,1)
    set_value(method.camelize, *args).value
  else
    get_value(method.camelize, *args).value
  end
end