Class: ActiveGraph::Core::Label

Inherits:
Element
  • Object
show all
Defined in:
lib/active_graph/core/label.rb

Instance Attribute Summary

Attributes inherited from Element

#name

Instance Method Summary collapse

Methods inherited from Element

#constraint?, #constraints, #create_constraint, #create_index, #drop_constraint, drop_constraints, #drop_index, #drop_indexes, drop_indexes, #drop_uniqueness_constraint, #index?, #indexes, indexes, #initialize, #uniqueness_constraint?, #uniqueness_constraints

Constructor Details

This class inherits a constructor from ActiveGraph::Core::Element

Instance Method Details

#element_typeObject



8
9
10
# File 'lib/active_graph/core/label.rb', line 8

def element_type
  'NODE'
end

#pattern(spec) ⇒ Object



4
5
6
# File 'lib/active_graph/core/label.rb', line 4

def pattern(spec)
  "(#{spec})"
end