Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#to_clj(options = {}) ⇒ Object



87
88
89
90
91
92
93
94
95
# File 'lib/clj/types.rb', line 87

def to_clj (options = {})
	result = inspect

	unless result =~ /:([^(\[{'^@`~\"\\,\s;)\]}]+)/
		raise ArgumentError, "#{result} cannot be transformed into clojure"
	end

	result
end