Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Metaprogramming/Ruby/metaprogramming.rb
Normal file
12
Task/Metaprogramming/Ruby/metaprogramming.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class IDVictim
|
||||
|
||||
# Create elements of this man, woman, or child's identification.
|
||||
attr_accessor :name, :birthday, :gender, :hometown
|
||||
|
||||
# Allows you to put in a space for anything which is not covered by the
|
||||
# preexisting elements.
|
||||
def self.new_element(element)
|
||||
attr_accessor element
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue