class Mybatis::Generate::Attribute

Attributes

column_name[RW]
field_name[RW]
type[RW]

Public Class Methods

instance_with_options(str) click to toggle source
# File lib/mybatis/util/context.rb, line 11
def instance_with_options str
  attribute = self.new
  attribute.field_name = str.replace_underline_upcase_to.downcase_first
  attribute.column_name = str
  attribute
end