Class: Ea::Ocl::Nodes::CollectionExists

Inherits:
Struct
  • Object
show all
Defined in:
lib/ea/ocl/nodes.rb

Overview

<collection>->exists(var | <pred>) — true if any element matches.

Instance Attribute Summary collapse

Instance Attribute Details

#collectionObject

Returns the value of attribute collection

Returns:

  • (Object)

    the current value of collection



15
16
17
# File 'lib/ea/ocl/nodes.rb', line 15

def collection
  @collection
end

#predicateObject

Returns the value of attribute predicate

Returns:

  • (Object)

    the current value of predicate



15
16
17
# File 'lib/ea/ocl/nodes.rb', line 15

def predicate
  @predicate
end

#varObject

Returns the value of attribute var

Returns:

  • (Object)

    the current value of var



15
16
17
# File 'lib/ea/ocl/nodes.rb', line 15

def var
  @var
end