Module: Citero
- Defined in:
- lib/citero-jruby/base.rb,
lib/citero-jruby/CSF.rb,
lib/citero-jruby/version.rb
Overview
Citero class, used in builder form as Citero.map(“some data”).from_format.to_format
Defined Under Namespace
Constant Summary collapse
- VERSION =
Citeros current version
"2.1.1"
Class Method Summary collapse
-
.citation_styles ⇒ Object
List of available Citation Styles Citero can exports to as a module class method for quick checks.
-
.from_formats ⇒ Object
List of available formats Citero exports from as a module class method for quick checks.
-
.map(*args) ⇒ Object
Calling the map method creates a new instance of the Base class, with splatter operator passed in.
-
.to_formats ⇒ Object
List of available formats Citero exports to as a module class method for quick checks.
Class Method Details
.citation_styles ⇒ Object
List of available Citation Styles Citero can exports to as a module class method for quick checks.
25 26 27 |
# File 'lib/citero-jruby/base.rb', line 25 def self.citation_styles @citation_styles ||= CitationStyles::values.collect {|style| style.name.downcase} end |
.from_formats ⇒ Object
List of available formats Citero exports from as a module class method for quick checks.
20 21 22 |
# File 'lib/citero-jruby/base.rb', line 20 def self.from_formats @from_formats ||= formats :isSourceFormat end |
.map(*args) ⇒ Object
Calling the map method creates a new instance of the Base class, with splatter operator passed in
10 11 12 |
# File 'lib/citero-jruby/base.rb', line 10 def self.map *args Base.new *args end |
.to_formats ⇒ Object
List of available formats Citero exports to as a module class method for quick checks.
15 16 17 |
# File 'lib/citero-jruby/base.rb', line 15 def self.to_formats @to_formats ||= formats :isDestinationFormat end |