Class: OCL::UAddrs

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

Overview

SizeOf

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

Returns a new instance of UAddrs.

Raises:

  • (ParseError)


268
269
270
271
# File 'lib/dbc/ocl.rb', line 268

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

Instance Method Details

#cexp?Boolean

Returns:

  • (Boolean)


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

def cexp?; true end

#csymbolObject



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

def csymbol; '&' end