glossarist / glossarist-ruby

Concept modeller in Ruby
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

How do I create a ManagedConcept object...? #106

Open ronaldtse opened 1 month ago

ronaldtse commented 1 month ago

How can there not even be an initialize method... 😓

I do not want to use #from_h... I can't tell what needed and what's not.

https://github.com/glossarist/glossarist-ruby/blob/69f7cf1db7b590bb61708958ea4d8a812f3db252/lib/glossarist/designation/base.rb#L7

We need to migrate Glossarist to use the Shale-like interface.

HassanAkbar commented 3 weeks ago

@ronaldtse We can simply do something like Glossarist::Designation::Base.new and that will create a new object. The initialize function is defined in the Model class from which we are inheriting the Glossarist::Designation::Base class.