OpenStruct in Ruby

In Ruby, OpenStruct is a data structure, similar to Hash. With this, we can define attributes with values (key value pairs).OpenStruct is a class which uses ruby’s metaprogramming for its implementation, since its not part of the ruby core, we have to require ostruct library which defines it.
OpenStruct in Ruby #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/openstruct-in-ruby

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles