Class: Mappum::TreeElement

Inherits:
Struct
  • Object
show all
Includes:
Comparable
Defined in:
lib/mappum/java_transform.rb,
lib/mappum/xml_transform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clazzObject

Returns the value of attribute clazz

Returns:

  • (Object)

    the current value of clazz



218
219
220
# File 'lib/mappum/xml_transform.rb', line 218

def clazz
  @clazz
end

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



218
219
220
# File 'lib/mappum/xml_transform.rb', line 218

def elements
  @elements
end

#is_arrayObject

Returns the value of attribute is_array

Returns:

  • (Object)

    the current value of is_array



218
219
220
# File 'lib/mappum/xml_transform.rb', line 218

def is_array
  @is_array
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



218
219
220
# File 'lib/mappum/xml_transform.rb', line 218

def name
  @name
end

Instance Method Details

#<=>(anOther) ⇒ Object



220
221
222
223
# File 'lib/mappum/xml_transform.rb', line 220

def <=>(anOther)
  return name <=> null if anOther.nil?
  name <=> anOther.name
end