class Alda::GetVariable

A get-variable event. An Alda::EventContainer containing an Alda::GetVariable can be derived using event list sugar. See Alda::EventList#method_missing.

This can be ambiguous with Alda::SetVariable and Alda::InlineLisp. For examples, see Alda::SetVariable.

Attributes

name[RW]

The name of the variable.

Public Class Methods

new(name) → Alda::GetVariable click to toggle source

Creates an Alda::GetVariable.

# File lib/alda-rb/event.rb, line 944
def initialize name
  @name = name
end

Public Instance Methods

to_alda_code() click to toggle source
# File lib/alda-rb/event.rb, line 948
def to_alda_code
  @name.to_s
end