lib/csl/info.rb in csl-1.0.0.pre1 vs lib/csl/info.rb in csl-1.0.0.pre2
- old
+ new
@@ -1,12 +1,12 @@
module CSL
class Info < Node
- attr_children :author, :category, :contributor, :id, :issn, :eissn,
- :issnl, :link, :published, :rights, :summary, :title, :'title-short',
- :updated, :'link-dependent-style'
+ attr_children :title, :'title-short', :id, :issn, :eissn, :issnl,
+ :link, :author, :contributor, :category, :published, :summary,
+ :updated, :rights, :'link-dependent-style'
alias contributors contributor
class Contributor < Node
@@ -19,22 +19,49 @@
class Translator < Node
attr_children :name, :email, :uri
end
- class Link < TextNode
+ class Link < Node
attr_struct :href, :rel
end
class DependentStyle < TextNode
attr_struct :href, :rel
end
- class Category < TextNode
+ class Category < Node
attr_struct :field, :'citation-format'
end
+
+ class Id < TextNode
+ end
+ class Name < TextNode
+ end
+
+ class Email < TextNode
+ end
+
+ class Title < TextNode
+ end
+
+ class ShortTitle < TextNode
+ end
+
+ class Summary < TextNode
+ end
+
+ class Rights < TextNode
+ end
+
+ class Uri < TextNode
+ end
+
+ class Updated < TextNode
+ end
+
end
end
\ No newline at end of file