Sha256: ecd0b61179f61b868cfd1247bfc4240c43c50f82bcae69834e91d4db075311d8
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
# # styles.rb # Simple checks on available styles through CSL # module AsciidoctorBibliography module Styles def Styles.available CSL::Style.ls end def Styles.default_style 'apa' end def Styles.valid? style Styles.available.include? style end def Styles.is_numeric? style CSL::Style.load(style).citation_format == :numeric end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-bibliography-0.1 | deprecated/asciidoctor-bibliography/styles.rb |
asciidoctor-bibliography-0.0.1.dev | deprecated/asciidoctor-bibliography/styles.rb |