Class: Clojure::Types::Sym
- Inherits:
-
Delegator
- Object
- Delegator
- Clojure::Types::Sym
- Includes:
- Metadata
- Defined in:
- lib/cljdotrb.rb
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #__setobj__(obj) ⇒ Object
-
#initialize(n) ⇒ Sym
constructor
A new instance of Sym.
Methods included from Metadata
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 |