remove useless parameter
This commit is contained in:
parent
10539ad7a9
commit
738156f9ee
@ -3,7 +3,7 @@
|
|||||||
# Extends the module object with class/module and instance accessors for
|
# Extends the module object with class/module and instance accessors for
|
||||||
# class/module attributes, just like the native attr* accessors for instance
|
# class/module attributes, just like the native attr* accessors for instance
|
||||||
# attributes, but does so on a per-thread basis.
|
# attributes, but does so on a per-thread basis.
|
||||||
#
|
#
|
||||||
# So the values are scoped within the Thread.current space under the class name
|
# So the values are scoped within the Thread.current space under the class name
|
||||||
# of the module.
|
# of the module.
|
||||||
class Module
|
class Module
|
||||||
@ -133,9 +133,9 @@ def #{sym}=(obj)
|
|||||||
#
|
#
|
||||||
# Current.new.user = "DHH" # => NoMethodError
|
# Current.new.user = "DHH" # => NoMethodError
|
||||||
# Current.new.user # => NoMethodError
|
# Current.new.user # => NoMethodError
|
||||||
def thread_mattr_accessor(*syms, &blk)
|
def thread_mattr_accessor(*syms)
|
||||||
thread_mattr_reader(*syms, &blk)
|
thread_mattr_reader(*syms)
|
||||||
thread_mattr_writer(*syms, &blk)
|
thread_mattr_writer(*syms)
|
||||||
end
|
end
|
||||||
alias :thread_cattr_accessor :thread_mattr_accessor
|
alias :thread_cattr_accessor :thread_mattr_accessor
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user