lib/csl/style.rb in csl-1.0.0.pre21 vs lib/csl/style.rb in csl-1.0.0.pre22

- old
+ new

@@ -18,13 +18,14 @@ def load(input = Style.default) super end end - attr_defaults :version => Schema.version, :xmlns => Schema.namespace + attr_defaults :version => Schema.major_version, + :xmlns => Schema.namespace - show_default_attributes! + show_default_attributes! attr_struct :xmlns, :version, :class, :'default-locale', :'initialize-with-hyphen', :'page-range-format', :'demote-non-dropping-particle', *Schema.attr(:name, :names) @@ -37,15 +38,17 @@ alias locales locale alias has_macros? has_macro? def_delegators :info, :self_link, :self_link=, :has_self_link?, - :template_link, :template_link=, :has_template_link?, + :self_link!, :template_link, :template_link=, :has_template_link?, :documentation_link, :documentation_link=, :has_documentation_link?, :independent_parent_link, :independent_parent_link=, :has_independent_parent_link?, :title=, :id=, :has_title?, :has_id?, - :published_at, :updated_at, :citation_format, :citation_format= + :published_at, :updated_at, :citation_format, :citation_format=, + :updated_at, :update!, :license, :license=, :default_license?, + :default_license! def initialize(attributes = {}) super(attributes, &nil) children[:locale], children[:macro], @macros, @errors = [], [], {}, [] @@ -79,19 +82,19 @@ end alias_child :metadata, :info # @return [String] the style's id - def id - return unless info.has_id? - info.id.to_s - end + def id + return unless info.has_id? + info.id.to_s + end # @return [String] the style's title - def title - return unless info.has_title? - info.title.to_s - end + def title + return unless info.has_title? + info.title.to_s + end alias has_template? has_template_link? # @return [Style] the style's template def template \ No newline at end of file