Module: Newebpay::AttrKeyHelper
- Defined in:
- lib/newebpay/attr_key_helper.rb
Instance Method Summary collapse
Instance Method Details
#convert_to_attr_key(term) ⇒ Object
3 4 5 |
# 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 |