OpenCores
URL https://opencores.org/ocsvn/soc_maker/soc_maker/trunk

Subversion Repositories soc_maker

[/] [soc_maker/] [trunk/] [lib/] [soc_maker/] [parameter.rb] - Diff between revs 7 and 8

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 7 Rev 8
Line 59... Line 59...
  attr_accessor :min
  attr_accessor :min
  attr_accessor :max
  attr_accessor :max
  attr_accessor :visible
  attr_accessor :visible
  attr_accessor :editable
  attr_accessor :editable
  attr_accessor :description
  attr_accessor :description
 
  attr_accessor :choice
 
 
  def initialize( type, options = {} )
  def initialize( type, options = {} )
    init_with( { 'type' => type }.merge( options ) )
    init_with( { 'type' => type }.merge( options ) )
  end
  end
 
 
Line 88... Line 89...
    @min          = coder[ 'min'         ] || 0
    @min          = coder[ 'min'         ] || 0
    @max          = coder[ 'max'         ] || 0
    @max          = coder[ 'max'         ] || 0
    @visible      = coder[ 'visible'     ] || true
    @visible      = coder[ 'visible'     ] || true
    @editable     = coder[ 'editable'    ] || false
    @editable     = coder[ 'editable'    ] || false
    @description  = coder[ 'description' ] || ''
    @description  = coder[ 'description' ] || ''
 
    @choice       = coder[ 'choice'      ] || []
  end
  end
 
 
 
 
  def ==(o)
  def ==(o)
    o.class         == self.class       &&
    o.class         == self.class       &&
Line 100... Line 101...
      o.default     == self.default     &&
      o.default     == self.default     &&
      o.min         == self.min         &&
      o.min         == self.min         &&
      o.max         == self.max         &&
      o.max         == self.max         &&
      o.visible     == self.visible     &&
      o.visible     == self.visible     &&
      o.editable    == self.editable    &&
      o.editable    == self.editable    &&
      o.description == self.description
      o.description == self.description &&
 
      o.choice      == self.choice
  end
  end
 
 
 
 
end
end
end
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.