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.
255 256 257 |
# File 'lib/dbc/ocl.rb', line 255 def initialize(exp) @expression = exp.to_cexp end |
Instance Method Details
#cexp? ⇒ Boolean
258 |
# File 'lib/dbc/ocl.rb', line 258 def cexp?; true end |