2017-07-16 13:11:16 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2009-03-20 17:40:37 -04:00
|
|
|
class Person
|
|
|
|
include ActiveModel::Validations
|
2009-12-23 06:28:02 -05:00
|
|
|
extend ActiveModel::Translation
|
2009-03-20 17:40:37 -04:00
|
|
|
|
2010-01-08 18:17:16 -05:00
|
|
|
attr_accessor :title, :karma, :salary, :gender
|
2010-01-07 13:22:32 -05:00
|
|
|
|
|
|
|
def condition_is_true
|
|
|
|
true
|
|
|
|
end
|
2017-11-05 17:25:37 -05:00
|
|
|
|
|
|
|
def condition_is_false
|
|
|
|
false
|
|
|
|
end
|
2009-03-20 17:40:37 -04:00
|
|
|
end
|
2009-12-23 06:28:02 -05:00
|
|
|
|
2011-02-27 18:14:11 -05:00
|
|
|
class Person::Gender
|
|
|
|
extend ActiveModel::Translation
|
|
|
|
end
|
|
|
|
|
2009-12-23 06:28:02 -05:00
|
|
|
class Child < Person
|
|
|
|
end
|