Class: Relisp::VariableValue
- Defined in:
- lib/relisp/type_conversion/programming_types.rb
Overview
This exists so that the value of a Relisp::Symbol type can be conveniently passed to elisp.
@slave.buffer_name(@elisp_variable)
=> Relisp::ElispError: Wrong type argument: bufferp, --relisp--variable--1
@slave.buffer_name(@elisp_variable.value)
=> "my buffer"
Instance Method Summary collapse
-
#initialize(variable) ⇒ VariableValue
constructor
A new instance of VariableValue.
- #to_elisp ⇒ Object
Constructor Details
#initialize(variable) ⇒ VariableValue
Returns a new instance of VariableValue.
131 132 133 |
# File 'lib/relisp/type_conversion/programming_types.rb', line 131 def initialize(variable) @variable = variable end |
Instance Method Details
#to_elisp ⇒ Object
135 136 137 |
# File 'lib/relisp/type_conversion/programming_types.rb', line 135 def to_elisp @variable.to_s end |