Sha256: 4951368152d430aa86179422bec8a3ca86bdae5e6d18f76b80989b6494b0eea4

Contents?: true

Size: 187 Bytes

Versions: 11

Compression:

Stored size: 187 Bytes

Contents

require "attentive/entity"
require "date"

day_names = Date::DAYNAMES.map(&:downcase)
Attentive::Entity.define "core.date.wday", *day_names do |match|
  day_names.index(match.phrase)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
attentive-0.3.9 lib/attentive/entities/core/date/wday.rb
attentive-0.3.8 lib/attentive/entities/core/date/wday.rb
attentive-0.3.7 lib/attentive/entities/core/date/wday.rb
attentive-0.3.6 lib/attentive/entities/core/date/wday.rb
attentive-0.3.5 lib/attentive/entities/core/date/wday.rb
attentive-0.3.4 lib/attentive/entities/core/date/wday.rb
attentive-0.3.3 lib/attentive/entities/core/date/wday.rb
attentive-0.3.2 lib/attentive/entities/core/date/wday.rb
attentive-0.3.1 lib/attentive/entities/core/date/wday.rb
attentive-0.3.0 lib/attentive/entities/core/date/wday.rb
attentive-0.2.0 lib/attentive/entities/core/date/wday.rb