noted / scholar

Search for and cite MLA sources.
MIT License
6 stars 4 forks source link

ContributorList constructor does not return a String #5

Closed ethnt closed 11 years ago

ethnt commented 11 years ago

Calling ContributorList.new does not output a String.

Scholar::Utilities::ContributorList.new([{:role => :author, :first => "John", :last => "Green"}], :author) # => Green, John

It should do this.

Scholar::Utilities::ContributorList.new([{:role => :author, :first => "John", :last => "Green"}], :author) # => "Green, John"
ethnt commented 11 years ago

It now returns self. #names is called within Scholar::Utilities::Data.contributors!.