Class: OCL::CUnary
Overview
only allows C expression
Instance Method Summary collapse
- #cexp? ⇒ Boolean
-
#initialize(exp) ⇒ CUnary
constructor
A new instance of CUnary.
Methods inherited from Unary
Methods inherited from Block
check_condition, result, #to_s
Constructor Details
#initialize(exp) ⇒ CUnary
Returns a new instance of CUnary.
251 252 253 |
# File 'lib/dbc/ocl.rb', line 251 def initialize(exp) @expression = exp.to_cexp end |
Instance Method Details
#cexp? ⇒ Boolean
254 |
# File 'lib/dbc/ocl.rb', line 254 def cexp?; true end |