Class: OCL::UDeref
Instance Method Summary collapse
- #cexp? ⇒ Boolean
- #csymbol ⇒ Object
-
#initialize(exp) ⇒ UDeref
constructor
A new instance of UDeref.
Methods inherited from Unary
Methods inherited from Block
check_condition, result, #to_s
Constructor Details
#initialize(exp) ⇒ UDeref
Returns a new instance of UDeref.
281 282 283 284 |
# File 'lib/dbc/ocl.rb', line 281 def initialize(exp) raise ParseError, "cannot dereference a condition" unless exp.cexp? super end |
Instance Method Details
#cexp? ⇒ Boolean
286 |
# File 'lib/dbc/ocl.rb', line 286 def cexp?; true end |
#csymbol ⇒ Object
285 |
# File 'lib/dbc/ocl.rb', line 285 def csymbol; '*' end |