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)


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

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

Instance Method Details

#cexp?Boolean

Returns:

  • (Boolean)


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

def cexp?; true end

#csymbolObject



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

def csymbol; '&' end