module Livecal

Public Class Methods

from_file(path, from:, to:) click to toggle source
# File lib/livecal.rb, line 11
def self.from_file(path, from:, to:)
  from_sources CalendarSource.from_file(path), from: from, to: to
end
from_sources(sources, from:, to:) click to toggle source
# File lib/livecal.rb, line 19
def self.from_sources(sources, from:, to:)
  sources.collect { |source| Parser.call(source, from: from, to: to) }
end
from_string(contents, from:, to:) click to toggle source
# File lib/livecal.rb, line 15
def self.from_string(contents, from:, to:)
  from_sources CalendarSource.from_string(contents), from: from, to: to
end
from_url(url, from:, to:) click to toggle source
# File lib/livecal.rb, line 7
def self.from_url(url, from:, to:)
  from_sources CalendarSource.from_url(url), from: from, to: to
end