Sha256: 0fb35327e8b6dc45c4b0941a5b9fba8f7efdfe72944a713de149ce079094c2b7
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
module Liner module Inspectable # A handy inspection string # @return [String] # @api public def inspect "#<#{self.class} #{attribute_string}>" end alias :to_s :inspect # List all the liner attributes as a string, used for inspection. # @return [String] # @api private def attribute_string liner.map { |k,v| "#{k}=#{v.inspect}" }.join(', ') end private :attribute_string end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
liner-0.2.4 | lib/liner/inspectable.rb |
liner-0.2.3 | lib/liner/inspectable.rb |
liner-0.2.2 | lib/liner/inspectable.rb |