Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby new struct

Customer = Struct.new(:name, :email, keyword_init: true)
Customer.new(name: "John", email: "john@example.com")
Source by www.bigbinary.com #
 
PREVIOUS NEXT
Tagged: #ruby #struct
ADD COMMENT
Topic
Name
9+4 =