Module: ZTK::DSL::Base::ClassMethods

Defined in:
lib/ztk/dsl/base.rb

Overview

Author:

Instance Method Summary (collapse)

Instance Method Details

- (String) inspect

Class Inspect

Inspect the DSL object's class, returning a concise string representation of the class.

Returns:

  • (String)

    A concise string representation of the class.



144
145
146
147
148
# File 'lib/ztk/dsl/base.rb', line 144

def inspect
  details = Array.new
  details << "count=#{self.all.count}" if self.all.count > 0
  "#<#{self.to_s} #{details.join(', ')}>"
end