Module: WSDL::XMLSchema::Ref::RefClassSupport

Defined in:
lib/wsdl/xmlSchema/ref.rb

Instance Method Summary collapse

Instance Method Details

#attr_reader_ref(symbol) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/wsdl/xmlSchema/ref.rb', line 20

def attr_reader_ref(symbol)
  name = symbol.to_s
  define_method(name) {
    instance_variable_get("@#{name}") ||
      (refelement ? refelement.__send__(name) : nil)
  }
end