Template:Nasal Add Setter Getter

From FlightGear wiki
Jump to navigation Jump to search
# declare a method named setFoo
 setFoo: func(value) {
  # do your processing here
  me.value=value; 
 },

# declare a method named getFoo
 getFoo: func() {
  # do your processing here
  return me.value; 
 },