Module: NeoScout::TyperValueTableMixin

Included in:
GDB_Neo4j::Typer
Defined in:
lib/neoscout/model.rb

Instance Method Summary collapse

Instance Method Details

#valid_value?(value_type, value) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
27
28
29
30
# File 'lib/neoscout/model.rb', line 24

def valid_value?(value_type, value)
  if (entry = self.value_type_table[value_type])
    entry.call(value_type_name, value)
  else
    true
  end
end