module Underscored
Public Class Methods
included(base)
click to toggle source
# File lib/twofishes/underscored.rb, line 4 def self.included(base) base::FIELDS.map do |_, v| define_method(v[:name].underscore) { send(v[:name]) } end end