Class: Archaeopteryx::MetacircularEvaluator

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

Instance Method Summary (collapse)

Constructor Details

- (MetacircularEvaluator) initialize(file)



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

def initialize(file)
  @file = file
  reload
end

Instance Method Details

- (Object) mutate(measure)



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

def mutate(measure)
  reload
end

- (Object) notes(beat)



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

def notes(beat)
  []
end

- (Object) reload



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

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