Module: UIC::ElementBacked::ClassMethods
- Defined in:
- lib/ruic/interfaces.rb
Instance Method Summary collapse
Instance Method Details
#xmlattribute(name, getblock = nil, &setblock) ⇒ Object
68 69 70 71 |
# File 'lib/ruic/interfaces.rb', line 68 def xmlattribute(name,getblock=nil,&setblock) define_method(name){ getblock ? getblock[@el[name]] : @el[name] } define_method("#{name}="){ |new_value| @el[name] = (setblock ? setblock[new_value] : new_value).to_s } end |