Class: NeoScout::Constraints::Constraint

Inherits:
Object
  • Object
show all
Defined in:
lib/neoscout/constraints.rb

Direct Known Subclasses

PropConstraint

Instance Method Summary collapse

Instance Method Details

#satisfied_by?(typer, obj) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


9
# File 'lib/neoscout/constraints.rb', line 9

def satisfied_by?(typer, obj) ; raise NotImplementedError end

#satisfied_by_edge?(typer, edge) ⇒ Boolean

Returns:

  • (Boolean)


7
# File 'lib/neoscout/constraints.rb', line 7

def satisfied_by_edge?(typer, edge) ; satisfied_by?(typer, edge) end

#satisfied_by_node?(typer, node) ⇒ Boolean

Returns:

  • (Boolean)


6
# File 'lib/neoscout/constraints.rb', line 6

def satisfied_by_node?(typer, node) ; satisfied_by?(typer, node) end