datafoodconsortium-connector 1.0.0.pre.alpha.2 → 1.0.0.pre.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c9d2e50fcad8ae240d942178bc865c4ababb788688ab262ea1977665702da9d
4
- data.tar.gz: c09ef2980a0f2144a52b67c80fabb4e1397c735a38d19c44c1d15483d2b286d0
3
+ metadata.gz: dc7b3dff19469ef0f0d10261f098d083fcfec5183f4d8b82dc6dcf9a8f365885
4
+ data.tar.gz: bfb6f3b592b8292b658de4387adf23c8ea87772f1cd8e16e5392623b2b1e06b3
5
5
  SHA512:
6
- metadata.gz: 2adc59cf77f5aba4d1c0b147dc357ee2894139701b68c996b7b078d6d0c9a107ad3859217e6495e1bb5764be28327e22057bac524fff3d8455c3e64ce297fd0f
7
- data.tar.gz: a7e8caf6e4b354dac8d2442de27a812ee690669e0d0b58702da19056a086d0def5fec4d40ef30048bd9bd9f51832737384b47a81c4a6178bfc3f5539d0a7700d
6
+ metadata.gz: 7b0841f41d9dc80c8ccf2b6c3b99290ecfb25f47ac90910dbf1b88fcf6c7325d0414ec61572e1823f2b9b198df7594a2cef7fa186653e36f6c8100cdba78bae8
7
+ data.tar.gz: 7c4d472de1f3acbcd8379765d5eddb7f2f5fbfc569c1e24204742808903cf683cbd6820d9bfd8fbe600ed4bba1c0ca33bf6a15d10c67325d916c743ee5f5eaac
@@ -26,8 +26,10 @@ require 'datafoodconsortium/connector/skos_parser_element'
26
26
  class DataFoodConsortium::Connector::SKOSInstance
27
27
 
28
28
  def addAttribute(name, value)
29
- instance_variable_set("@#{name}", value)
30
- self.class.send(:attr_reader, name)
29
+ self.instance_variable_set("@#{name}", value)
30
+ self.define_singleton_method(name) do
31
+ return instance_variable_get("@#{name}")
32
+ end
31
33
  end
32
34
 
33
35
  def hasAttribute(name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datafoodconsortium-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.2
4
+ version: 1.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Lecoq
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-23 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtual_assembly-semantizer