Sha256: 3882ee4cff45d4191cda491cc0ed0ffd466ea21bb7b9b42395cc74633fb21521
Contents?: true
Size: 657 Bytes
Versions: 8
Compression:
Stored size: 657 Bytes
Contents
module Glimmer module SWT # 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
8 entries across 8 versions & 1 rubygems