class CalendariumRomanum::Data::SanctoraleFile
Attributes
path[R]
siglum[R]
Public Class Methods
new(base_name)
click to toggle source
This class is not intended to be initialized by client code - it's sole purpose is to provide functionality for easy loading of the bundled sanctorale data files.
@api private
# File lib/calendarium-romanum/data.rb, line 15 def initialize(base_name) @siglum = base_name.sub(/\.txt$/, '') @path = File.expand_path('../../data/' + base_name, File.dirname(__FILE__)) end
Public Instance Methods
load()
click to toggle source
Load the data file
@return [Sanctorale]
# File lib/calendarium-romanum/data.rb, line 25 def load SanctoraleLoader.new.load_from_file(path) end
load_with_parents()
click to toggle source
Load the data file and all it's parents
@return [Sanctorale] @since 0.7.0
# File lib/calendarium-romanum/data.rb, line 33 def load_with_parents SanctoraleFactory.load_with_parents(path) end