Class | Module |
In: |
lib/limelight/util.rb
|
Parent: | Object |
# File lib/limelight/util.rb, line 51 51: def prop_reader(*symbols) 52: symbols.each do |sym| 53: define_method(sym) do 54: return scene.find(sym.to_s) 55: # value = instance_variable_get("@#{sym}") 56: # if value.nil? 57: # value = scene.find(sym.to_s) 58: # instance_variable_set("@#{sym}", value) unless value.nil? 59: # end 60: # return value 61: end 62: end 63: end