module Newebpay::AttrKeyHelper
Public Instance Methods
convert_to_attr_key(term)
click to toggle source
# File lib/newebpay/attr_key_helper.rb, line 3 def convert_to_attr_key(term) term.to_s.gsub(/(^|_)(url|id|[a-z0-9])/) { Regexp.last_match[2].upcase } end