Class Index [+]

Quicksearch

When::CalendarTypes::CalendarNotes

暦注

Attributes

event[R]

デフォルトイベント名

  type : String

Public Instance Methods

enum_for(event, first, direction, count_limit=nil) click to toggle source

Enumeratorの生成

  event     : String
    イベント名
  first     : When::TM::(Temporal)Position
    始点
  direction : :forward or :reverse
    :forward - 昇順
    :reverse - 降順
  count_limit : Integer
    繰り返し回数(デフォルトは指定なし)
     # File when/calendartypes.rb, line 806
806:     def enum_for(event, first, direction, count_limit=nil)
807:       Enumerator.new(self, event, first, direction, count_limit)
808:     end
Also aliased as: to_enum
include?(date, event=@event) click to toggle source

指定の日時が指定イベントに該当するか?

  date    : When::TM::(Temporal)Position
    チェックされる日時
  event   : String
    チェックするイベント名(default @event)

  returns : Boolean
    true  - 該当する
    false - 該当しない
     # File when/calendartypes.rb, line 786
786:     def include?(date, event=@event)
787:       raise ArgumentError, "event not defined" unless event
788:       first = enum_for(event, date, :forward).next
789:       return first.include?(date) if first.kind_of?(When::Parts::GeometricComplex)
790:       return first == date if first.precision <= date.precision
791:       return false
792:     end
to_enum(event, first, direction, count_limit=nil) click to toggle source
Alias for: enum_for

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.