class Sekken::XS::Attribute

Attributes

default[R]
fixed[R]
name[R]
namespaces[R]
ref[R]
type[R]
use[R]

Public Class Methods

new(node, schemas, schema = {}) click to toggle source
Calls superclass method Sekken::XS::BaseType::new
# File lib/sekken/xs/types.rb, line 162
def initialize(node, schemas, schema = {})
  super

  @name = node['name']
  @type = node['type']
  @ref  = node['ref']

  @use     = node['use'] || 'optional'
  @default = node['default']
  @fixed   = node['fixed']

  @namespaces = node.namespaces
end

Public Instance Methods

collect_child_elements(memo = []) click to toggle source

stop searching for child elements

# File lib/sekken/xs/types.rb, line 184
def collect_child_elements(memo = [])
  memo
end
inline_type() click to toggle source
# File lib/sekken/xs/types.rb, line 179
def inline_type
  children.first
end