Class: OCL::UDeref

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

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) ⇒ UDeref

Returns a new instance of UDeref.

Raises:

  • (ParseError)


277
278
279
280
# File 'lib/dbc/ocl.rb', line 277

def initialize(exp)
	raise ParseError, "cannot dereference a condition" unless exp.cexp?
	super
end

Instance Method Details

#cexp?Boolean

Returns:

  • (Boolean)


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

def cexp?; true end

#csymbolObject



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

def csymbol; '*' end