Class: CiteProc::Locale

Inherits:
Object
  • Object
show all
Includes:
Asset
Defined in:
lib/citeproc/assets.rb

Instance Attribute Summary

Attributes included from Asset

#asset, #location

Instance Method Summary collapse

Methods included from Asset

#inspect, #name, #open, #open?

Instance Method Details

#languageObject



103
104
105
# File 'lib/citeproc/assets.rb', line 103

def language
  name.split('-')[0]
end

#regionObject



107
108
109
# File 'lib/citeproc/assets.rb', line 107

def region
  name.split('-')[1]
end