Class: Clojure::Types::Sym

Inherits:
Delegator
  • Object
show all
Includes:
Metadata
Defined in:
lib/cljdotrb.rb

Instance Method Summary collapse

Methods included from Metadata

#meta, #with_meta

Constructor Details

#initialize(n) ⇒ Sym

Returns a new instance of Sym.



27
28
29
30
# File 'lib/cljdotrb.rb', line 27

def initialize n
  super
  @name = n
end

Instance Method Details

#__getobj__Object



32
33
34
# File 'lib/cljdotrb.rb', line 32

def __getobj__
  @name
end

#__setobj__(obj) ⇒ Object



36
37
38
# File 'lib/cljdotrb.rb', line 36

def __setobj__ obj
  @name = obj
end