Sha256: 1210bfc6d0f539f51592fe38f120bfa8b5068216b5c5fcf98988d5f575331977
Contents?: true
Size: 658 Bytes
Versions: 7
Compression:
Stored size: 658 Bytes
Contents
module Glimmer module Opal # Adapts Glimmer UI classes to SWT JavaBean property owner classes (which are now adapted to Opal) module PropertyOwner def get_attribute(attribute_name) send(attribute_getter(attribute_name)) end def set_attribute(attribute_name, *args) send(attribute_setter(attribute_name), *args) unless send(attribute_getter(attribute_name)) == args.first end def attribute_setter(attribute_name) "#{attribute_name.to_s.underscore}=" end def attribute_getter(attribute_name) attribute_name.to_s.underscore end end end end
Version data entries
7 entries across 7 versions & 1 rubygems