Class: Sekken::XML::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/sekken/xml/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_typeObject

Returns the value of attribute base_type.



5
6
7
# File 'lib/sekken/xml/attribute.rb', line 5

def base_type
  @base_type
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/sekken/xml/attribute.rb', line 5

def name
  @name
end

#useObject

Returns the value of attribute use.



5
6
7
# File 'lib/sekken/xml/attribute.rb', line 5

def use
  @use
end

Instance Method Details

#optional?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/sekken/xml/attribute.rb', line 7

def optional?
  use == 'optional'
end