Sha256: 6003f67a5eaed52f63d1de03074163eec57de201d7d2ae1e564e1411031e2ed7

Contents?: true

Size: 828 Bytes

Versions: 11

Compression:

Stored size: 828 Bytes

Contents

require 'java'
require File.dirname(__FILE__) + '/rfc2445.jar'

class Weekday
  include_class('com.google.ical.values.Weekday') {|package,name| "J#{name}" }
  MAP = {
    '0' => JWeekday::SU, 'sun' => JWeekday::SU, 'su' => JWeekday::SU,
    '1' => JWeekday::MO, 'mon' => JWeekday::MO, 'mo' => JWeekday::MO,
    '2' => JWeekday::TU, 'tue' => JWeekday::TU, 'tu' => JWeekday::TU,
    '3' => JWeekday::WE, 'wed' => JWeekday::WE, 'we' => JWeekday::WE,
    '4' => JWeekday::TH, 'thu' => JWeekday::TH, 'th' => JWeekday::TH,
    '5' => JWeekday::FR, 'fri' => JWeekday::FR, 'fr' => JWeekday::FR,
    '6' => JWeekday::SA, 'sat' => JWeekday::SA, 'sa' => JWeekday::SA,
    JWeekday::SU => 0,
    JWeekday::MO => 1,
    JWeekday::TU => 2,
    JWeekday::WE => 3,
    JWeekday::TH => 4,
    JWeekday::FR => 5,
    JWeekday::SA => 6,
  }
  
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
jerryluk-jruby-rfc2445-0.0.2 lib/weekday.rb
jerryluk-jruby-rfc2445-0.0.3 lib/weekday.rb
jerryluk-jruby-rfc2445-0.0.4 lib/weekday.rb
jruby-rfc2445-0.6.4 lib/weekday.rb
jruby-rfc2445-0.6.3 lib/weekday.rb
jruby-rfc2445-0.6.2 lib/weekday.rb
jruby-rfc2445-0.6.1 lib/weekday.rb
jruby-rfc2445-0.6.0 lib/weekday.rb
jruby-rfc2445-0.5.0 lib/weekday.rb
jruby-rfc2445-0.1.0 lib/weekday.rb
jruby-rfc2445-0.0.4 lib/weekday.rb