Class: CiteMapper
- Inherits:
-
Object
- Object
- CiteMapper
- Defined in:
- lib/cite_mapper.rb,
lib/cite_mapper/version.rb
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
- #find_by_cite(urn_string) ⇒ Object
-
#initialize ⇒ CiteMapper
constructor
A new instance of CiteMapper.
Constructor Details
#initialize ⇒ CiteMapper
Returns a new instance of CiteMapper.
4 5 6 7 |
# File 'lib/cite_mapper.rb', line 4 def initialize = {} parse_abbr_file end |
Instance Method Details
#find_by_cite(urn_string) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/cite_mapper.rb', line 9 def find_by_cite(urn_string) cts = CtsUrn.new(urn_string) = [cts.] work = [cts.work] Result.new(, work, cts.section) end |