lib/onoma/nomenclature.rb
# Add an property to the nomenclature
Add an property to the nomenclature
Add an property to the nomenclature
def add_property(name, type, options = {})
      p = Property.new(self, name, type, options)
      if @properties[p.name]
        raise "Property #{p.name} is already defined in nomenclature #{@name}"
      end
      @properties[p.name] = p
      @references = nil
      p
    end
def add_property ( name , type , options = { } ) p = Property . new ( self , name , type , options ) if @properties [ p . name ] raise "Property #{p.name} is already defined in nomenclature #{@name}" end @properties [ p . name ] = p @references = nil p end
Add an property to the nomenclature
Add an property to the nomenclature
name
<not_specific>
type
<not_specific>
options
<not_specific>