Class: OCL::CUnary

Inherits:
Unary show all
Defined in:
lib/dbc/ocl.rb

Overview

only allows C expression

Direct Known Subclasses

UAddrs, UDeref

Instance Method Summary collapse

Methods inherited from Unary

#to_cexp, #to_exp

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

Returns:

  • (Boolean)


258
# File 'lib/dbc/ocl.rb', line 258

def cexp?; true end