rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/eiffel

31 lines
407 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
note
description: "Represents a person."
class
PERSON
create
make, make_unknown
feature {NONE} -- Creation
make (a_name: like name)
-- Create a person with `a_name' as `name'.
do
name := a_name
ensure
name = a_name
end
make_unknown
do ensure
name = Void
end
feature -- Access
name: detachable STRING
-- Full name or Void if unknown.
end