bendiken/rdf — Issue #96: RDF::Vocabulary Usefulness of self.method_missing VS self.property ?
Author: abrisse
Created: 2011-11-14 09:37:56+00:00
State: open

Hello,

There is something I would like to understand : what's the usefulness of the method self.property which defines a method using the argument that is passed by, since there is a method self.method_missing that returns dynamically self[property] ?

Why not removing the method self.method_missing ?

Then if I want to only use the properties that are declared (otherwise an undefined method error is raised), I use :

```
FOAF.givenName
```

and if I don't care about the existence of the property, I use :

```
FOAF[:myProperty]
```

It would be very useful when a ruby vocabulary is auto-generated from an OWL that change to make the unit tests fail when using an property that has been renamed for example.