lib/csl/locale/date.rb in csl-1.0.0.pre18 vs lib/csl/locale/date.rb in csl-1.0.0.pre19
- old
+ new
@@ -23,9 +23,17 @@
def delimiter
attributes.fetch(:delimiter, '')
end
+ def has_form?
+ attribute?(:form)
+ end
+
+ def form
+ attributes[:form].to_s
+ end
+
def text?
!numeric?
end
def numeric?