Class: Clojure::Map

Inherits:
Hash
  • Object
show all
Includes:
Metadata
Defined in:
lib/clj/types.rb

Instance Method Summary collapse

Methods included from Metadata

#metadata, #metadata=, #metadata_to_clj

Methods inherited from Hash

#to_map

Instance Method Details

#to_clj(options = {}) ⇒ Object


53
54
55
# File 'lib/clj/types.rb', line 53

def to_clj (options = {})
	(options) + '{' + map { |k, v| k.to_clj(options) + ' ' + v.to_clj(options) }.join(' ') + '}'
end