Changeset 8652

Show
Ignore:
Timestamp:
04/02/08 17:20:59 (5 years ago)
Author:
tokuhirom
Message:

Vodafone にも xhtml_compliant のメソッドはほしいな。と。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/Default/ThirdForce.pm

    r8639 r8652  
    2222sub is_type_w   :MobileMethod('is_type_w,ThirdForce')   { shift->{type} =~ /^W/ } 
    2323sub is_type_3gc :MobileMethod('is_type_3gc,ThirdForce') { shift->{type} eq '3GC' } 
     24 
     25sub xhtml_compliant :MobileMethod('xhtml_compliant,ThirdForce') { 
     26    my $self = shift; 
     27    return ( $self->is_type_w || $self->is_type_3gc ) ? 1 : 0; 
     28} 
    2429 
    2530sub user_agent { shift->{user_agent} }