Sha256: 7bf478dd6560bef153d467fe27a0704cc7c75cd7493783873fcce7a23484fa2d
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
require 'rubygems' require 'spec' $:.unshift(File.dirname(__FILE__) + '/../lib') require 'comma' class Book attr_accessor :name, :description, :isbn def initialize(name, description, isbn) @name, @description, @isbn = name, description, isbn end comma do name 'Title' description isbn :authority => :issuer isbn :number_10 => 'ISBN-10' isbn :number_13 => 'ISBN-13' end comma :brief do name description end end class Isbn attr_accessor :number_10, :number_13 def initialize(isbn_10, isbn_13) @number_10, @number_13 = isbn_10, isbn_13 end def authority; 'ISBN'; end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
comma-0.3.1 | spec/spec_helper.rb |
liangzan-comma-0.3.1 | spec/spec_helper.rb |
comma-0.3.0 | spec/spec_helper.rb |