lib/trait_bank/slurp.rb
# NOTE: This code automatically makes integers out of any attribute ending in "_id" or "_num". BE AWARE!
This code automatically makes integers out of any attribute ending in "_id" or "_num". BE AWARE!
This code automatically makes integers out of any attribute ending in " _id " or " _num " . BE AWARE!
def autocast_val(attr)
    return "toInteger(#{attr.val})" if attr.key =~ /_(num|id)$/
    attr.val
  end
def autocast_val ( attr ) return "toInteger(#{attr.val})" if attr . key =~ / _(num|id)$ / attr . val end
NOTE: This code automatically makes integers out of any attribute ending in "_id" or "_num".
NOTE : This code automatically makes integers out of any attribute ending in " _id " or " _num " .
# NOTE: This code automatically makes integers out of any attribute ending in "_id" or "_num". BE AWARE!
attr
<not_specific>