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

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

Instance Method Summary collapse

Instance Method Details

#attr_reader_ref(symbol) ⇒ Object



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

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