lib/universa/service.rb in universa-3.9.14.1 vs lib/universa/service.rb in universa-3.9.14.4
- old
+ new
@@ -141,8 +141,21 @@
end
def self.invoke_static(method_name, *args)
Service.umi.invoke_static @remote_class_name, method_name, *args
end
+
+ def self.remote_field *names
+ names.each {|name|
+ class_eval <<-End
+ def #{name}
+ Service.umi.get_field(self,"#{name}")
+ end
+ def #{name}=(value)
+ Service.umi.set_field(self,"#{name}", value)
+ end
+ End
+ }
+ end
end
end