Module: EnfEditor::PropertyName

Included in:
EEBrepVolume, EEComponent, EEOccInst
Defined in:
lib/enfeditor/core_ext/property_utils.rb

Overview

Mixin module to handle name property

Instance Method Summary collapse

Instance Method Details

#nameString?

Return name

Examples:

puts element.name  # => 'elem1'

Returns:

  • (String, nil)

    return name

Since:

  • 0.1.0.0



# File 'lib/enfeditor/core_ext/property_utils.rb', line 9

#name=(value) ⇒ Object

Setter for element name

Examples:

element.name = "elem2"

Parameters:

  • value (String, nil)

    new value or set nil to remove name property

Since:

  • 0.1.0.0



# File 'lib/enfeditor/core_ext/property_utils.rb', line 16