Sha256: f2dc0e2245921a7e71fe81d17fb5216976a40fc096dcd41c7b6ce17ef1595cd8

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

module Liner
  module Inspectable
    # A handy inspection string
    # @return [String]
    # @api public
    def inspect
      attribute_string = liner.map{|k,v| "#{k}=#{v.inspect}"}.join(', ')
      "#<#{self.class} #{attribute_string}>"
    end
    alias :to_s :inspect
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
liner-0.2.1 lib/liner/inspectable.rb