class Timelime::Event

Attributes

head[RW]
tags[RW]
time[RW]

Public Class Methods

new(rawHead = "") click to toggle source
# File lib/timelime/event.rb, line 7
def initialize(rawHead = "")
  @head = Timelime::Head.new(rawHead)
  @time = Timelime::Time.new
  @tags = Timelime::Tags.new
end

Public Instance Methods

complete?() click to toggle source
# File lib/timelime/event.rb, line 13
def complete?
  [
    @head,
    @time,
  ].each do |d|
    if d.data.length == 0
      return false
    end
  end

  return true

end