Page MenuHomePhabricator (Chris)

main.rb
No OneTemporary

Authored By
Unknown
Size
199 B
Referenced Files
None
Subscribers
None
# shows how meta programming is used to generate getter and setters
require 'person'
# create an object and play around with it
p = Person.new 42
p.firstName="John"
p.name="Smith"
puts p.fullName

File Metadata

Mime Type
text/x-ruby
Expires
Sat, Nov 14, 4:39 PM (10 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137342
Default Alt Text
main.rb (199 B)

Event Timeline