Class: Archaeopteryx::MetacircularEvaluator

Inherits:
Object
  • Object
show all
Defined in:
lib/metacircular_evaluator.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ MetacircularEvaluator



3
4
5
6
# File 'lib/metacircular_evaluator.rb', line 3

def initialize(file)
  @file = file
  reload
end

Instance Method Details

#mutate(measure) ⇒ Object



14
15
16
# File 'lib/metacircular_evaluator.rb', line 14

def mutate(measure)
  reload
end

#notes(beat) ⇒ Object



11
12
13
# File 'lib/metacircular_evaluator.rb', line 11

def notes(beat)
  []
end

#reloadObject



7
8
9
10
# File 'lib/metacircular_evaluator.rb', line 7

def reload
  eval(File.read(@file))
  puts "hey"
end