Use alias to implement `attr` method

parent fda64be9
......@@ -5,9 +5,10 @@ class Module
attr_writer(*names)
end
# 15.2.2.4.11
def attr(name)
attr_reader(name)
end
alias attr attr_reader
#def attr(name)
# attr_reader(name)
#end
# 15.2.2.4.27
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