Module: RubySmart::SimpleLogger::Extensions::Mask::ClassMethods
- Defined in:
- lib/ruby_smart/simple_logger/extensions/mask.rb
Instance Method Summary collapse
-
#inherited(subclass) ⇒ Object
prevents to overwrite parent class through inheriting subclasses.
- #mask ⇒ Object
- #mask=(mask) ⇒ Object
Instance Method Details
#inherited(subclass) ⇒ Object
prevents to overwrite parent class through inheriting subclasses
30 31 32 33 34 35 |
# File 'lib/ruby_smart/simple_logger/extensions/mask.rb', line 30 def inherited(subclass) super # dup existing values subclass.mask = self.mask.dup end |
#mask ⇒ Object
21 22 23 |
# File 'lib/ruby_smart/simple_logger/extensions/mask.rb', line 21 def mask @mask end |
#mask=(mask) ⇒ Object
25 26 27 |
# File 'lib/ruby_smart/simple_logger/extensions/mask.rb', line 25 def mask=(mask) @mask = mask end |