Module: Coati::InstanceMethods
- Defined in:
- lib/coati/core.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/coati/core.rb', line 11 def inspect new_inspect = super if self.class.instance_methods.include?(:attrs_to_hide) attrs_to_hide.each do |attr_to_hide| new_inspect.gsub!(/,? @#{attr_to_hide}=".+"/, '') end end new_inspect end |