Class: Relisp::VariableValue

Inherits:
Object
  • Object
show all
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

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_elispObject



135
136
137
# File 'lib/relisp/type_conversion/programming_types.rb', line 135

def to_elisp
  @variable.to_s
end