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