Method: ActiveTriples::Reflection::ClassMethods#has_property?

Defined in:
lib/active_triples/reflection.rb

#has_property?(property) ⇒ Boolean

Returns true if the property exsits; false otherwise.

Parameters:

  • property (#to_s)

Returns:

  • (Boolean)

    true if the property exsits; false otherwise



64
65
66
# File 'lib/active_triples/reflection.rb', line 64

def has_property?(property)
  _active_triples_config.keys.include? property.to_s
end