Use alias to implement `attr` method

parent fda64be9
...@@ -5,9 +5,10 @@ class Module ...@@ -5,9 +5,10 @@ class Module
attr_writer(*names) attr_writer(*names)
end end
# 15.2.2.4.11 # 15.2.2.4.11
def attr(name) alias attr attr_reader
attr_reader(name) #def attr(name)
end # attr_reader(name)
#end
# 15.2.2.4.27 # 15.2.2.4.27
def include(*args) def include(*args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment