Module: Xot::UniversalAccessor

Included in:
Module
Defined in:
lib/xot/universal_accessor.rb

Instance Method Summary collapse

Instance Method Details

#universal_accessor(*names, **names_with_options) ⇒ Object



9
10
11
12
# File 'lib/xot/universal_accessor.rb', line 9

def universal_accessor(*names, **names_with_options)
  names.each              {|name|       define_universal_accessor name}
  names_with_options.each {|name, opts| define_universal_accessor name, opts}
end