Sha256: 9f74b991d4b16561c6241ea20cae1f5281a5cb5178fcc3a1bfba7ed1632c12cc
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
class Array def to_s "(#{ map(&:inspect).join(" ") })" end def inspect to_s end def call(index) self[index] end # Ruby 2.0 shim unless Array.method_defined?(:to_h) def to_h Hash[self] end end end class Hash def to_s "{#{ map { |pair| pair.map(&:inspect).join(" ") }.join(", ") }}" end def inspect to_s end def call(index) self[index] end end class Symbol def inspect to_s end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lasp-0.12.0 | lib/lasp/ext.rb |
lasp-0.11.0 | lib/lasp/ext.rb |
lasp-0.10.1 | lib/lasp/ext.rb |