Module: Hiwai::Masked
- Included in:
- MaskedRegexp, MaskedString
- Defined in:
- lib/hiwai/masked.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/hiwai/masked.rb', line 3 def self.included(klass) klass.class_eval do alias_method :to_s, :masked_string alias_method :inspect, :masked_string end end |
Instance Method Details
#masked_string ⇒ Object
10 11 12 |
# File 'lib/hiwai/masked.rb', line 10 def masked_string '<masked>' end |