mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use alias to implement attr method
This commit is contained in:
+4
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user