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.0.2 new_project_template/vendor/ceedling/vendor/constructor/homepage/sample_code.rb
ceedling-0.0.1 new_project_template/vendor/ceedling/vendor/constructor/homepage/sample_code.rb
constructor-1.0.4 homepage/sample_code.rb