Class: WSDL::XMLSchema::Pattern

Inherits:
Info show all
Defined in:
lib/wsdl/xmlSchema/pattern.rb

Instance Attribute Summary

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary (collapse)

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

- (Pattern) initialize



17
18
19
# File 'lib/wsdl/xmlSchema/pattern.rb', line 17

def initialize
  super
end

Instance Method Details

- (Object) parse_attr(attr, value)



25
26
27
28
29
30
31
# File 'lib/wsdl/xmlSchema/pattern.rb', line 25

def parse_attr(attr, value)
  case attr
  when ValueAttrName
    parent.pattern = /\A#{value.source}\z/n
    value.source
  end
end

- (Object) parse_element(element)



21
22
23
# File 'lib/wsdl/xmlSchema/pattern.rb', line 21

def parse_element(element)
  nil
end