Class: YamlStore::Record

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/yaml_store.rb

Instance Method Summary collapse

Instance Method Details

#has_property?(property) ⇒ Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/yaml_store.rb', line 94

def has_property?(property)
  @table.has_key?(property.to_sym)
end

#idObject



93
# File 'lib/yaml_store.rb', line 93

def id; key; end