It looks like you're new here. If you want to get involved, click one of these buttons!

The result of the `xor`

calculation for `RBA::Edges`

is a `NilClass`

type, which means that the result of the `xor`

calculation cannot be called further because the `NilClass`

does not contain the methods that would otherwise be included in `RBA::edges`

.

```
def extract_devices(layer_geometry)
sd = layer_geometry[0]#device
s = sd[0]
d = sd[1]
g = layer_geometry[1]#device
s_region = RBA::Region.new(s)
d_region = RBA::Region.new(d)
g_region = RBA::Region.new(g[0])
seed = g_region
s_edges = RBA::Edges.new
(s.each_edge).each {
|n|
s_edges = s_edges + n
}
d_edges = RBA::Edges.new
(d.each_edge).each {
|n|
d_edges = d_edges + n
}
seed_edges = RBA::Edges.new
(seed[0].each_edge).each {
|x|
seed_edges = seed_edges + x
}
puts(s_edges^d_edges^seed_edges).merged
end
```

## Comments

You're trying to call "merged" on the result of "puts".

It has to be (note the additional brackets):

Matthias

Thanks!!

Ah, a mistake so stupid that he bothered me for half a day