Sha256: 9cb05e58f5d7ae6ca9ce01c2e0f799e217810354acbf386b9e461887fbbd4427
Contents?: true
Size: 226 Bytes
Versions: 23
Compression:
Stored size: 226 Bytes
Contents
require 'rubygems' require 'constructor' class Horse constructor :name, :breed, :weight, :accessors => true end ed = Horse.new(:name => 'Ed', :breed => 'Mustang', :weight => 342) puts ed.name puts ed.breed puts ed.weight
Version data entries
23 entries across 23 versions & 2 rubygems