Class: Nydp::Kalendor::Builtin::Base

Inherits:
Object
  • Object
show all
Includes:
Builtin::Base
Defined in:
lib/nydp/kalendor.rb

Instance Method Summary collapse

Constructor Details

#initialize(store, factory) ⇒ Base

Returns a new instance of Base.



65
66
67
68
# File 'lib/nydp/kalendor.rb', line 65

def initialize store, factory
  @store = store
  @factory = factory
end

Instance Method Details

#lookup(kal) ⇒ Object



70
71
72
73
# File 'lib/nydp/kalendor.rb', line 70

def lookup       kal
  kal = n2r kal
  kal.respond_to?(:get_dates) ? kal : @store.find(kal)
end

#nameObject



75
# File 'lib/nydp/kalendor.rb', line 75

def name         ; "kalendor/#{super}"     ; end