Module: UIC::ElementBacked::ClassMethods
- Defined in:
- lib/ruic/interfaces.rb
Instance Method Summary collapse
Instance Method Details
#xmlattribute(name, &block) ⇒ Object
25 26 27 28 |
# File 'lib/ruic/interfaces.rb', line 25 def xmlattribute(name,&block) define_method(name){ @el[name] } define_method("#{name}=", &(block || ->(new_value){ @el[name]=new_value.to_s })) end |