Search Results
- of 1
-
Class: OpenStructPublic Class methods new (hash=nil) Create a new OpenStruct object. The optional hash , if given, will generate attributes and values. For example. require 'ostruct' hash = { "country" => "Australia", :population => 20_000_000 } data = OpenStruct.new(hash) p data # ->
- SHARE
- VIEW IN TWINES (1)
- VIEW WEB PAGE