Class: Origen::Limits::Limit
Instance Attribute Summary collapse
-
#expr ⇒ Object
Returns the value of attribute expr.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
If the value is still a String then it could be due to referencing another LimitSet that is yet to be defined.
Instance Method Summary collapse
-
#exp ⇒ Object
Backwards compatibility.
-
#initialize(expr, type, owner, options = {}) ⇒ Limit
constructor
A new instance of Limit.
Constructor Details
#initialize(expr, type, owner, options = {}) ⇒ Limit
Returns a new instance of Limit.
7 8 9 10 11 12 |
# File 'lib/origen/limits/limit.rb', line 7 def initialize(expr, type, owner, = {}) @expr = expr @owner = owner @type = type @value = evaluate_expr end |
Instance Attribute Details
#expr ⇒ Object
Returns the value of attribute expr.
4 5 6 |
# File 'lib/origen/limits/limit.rb', line 4 def expr @expr end |
#owner ⇒ Object
Returns the value of attribute owner.
4 5 6 |
# File 'lib/origen/limits/limit.rb', line 4 def owner @owner end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/origen/limits/limit.rb', line 4 def type @type end |
Instance Method Details
#exp ⇒ Object
Backwards compatibility
26 27 28 |
# File 'lib/origen/limits/limit.rb', line 26 def exp @expr end |