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

Version Path
ceedling-0.27.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.25.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.24.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.22.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.21.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.20.3 vendor/constructor/homepage/sample_code.rb
ceedling-0.20.2 vendor/constructor/homepage/sample_code.rb
ceedling-0.19.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.18.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.17.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.16.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.6 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.5 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.4 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.3 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.2 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.1 vendor/constructor/homepage/sample_code.rb
ceedling-0.15.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.13.0 vendor/constructor/homepage/sample_code.rb
ceedling-0.13.0.rc1 vendor/constructor/homepage/sample_code.rb