Ignore:
Timestamp:
May 12, 2008, 8:02:35 AM (16 years ago)
Author:
Tatsukawa, Akimichi
Message:

Unit tests for adl_parser fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/models/rm/support/assumed_types.rb

    r4 r47  
    1616          end
    1717        end
     18
     19        class List
     20          attr_reader :content
     21
     22          def initialize(arg)
     23            @content = arg
     24          end
     25
     26          def first
     27            @content.first
     28          end
     29
     30          def last
     31            @content.last
     32          end
     33        end
     34
     35        class TIME_DEFINITIONS
     36        end
     37
     38
     39        class ISO8601_DATE < TIME_DEFINITIONS
     40        end
     41
     42        class ISO8601_TIME < TIME_DEFINITIONS
     43        end
     44
     45        class ISO8601_DURATION < TIME_DEFINITIONS
     46        end
     47
     48        class ISO8601_DATE_TIME < TIME_DEFINITIONS
     49        end
     50
     51        class ISO8601_TIMEZONE < TIME_DEFINITIONS
     52        end
     53
     54        class String
     55          attr_reader :content
     56          def initialize(arg)
     57            @content = arg
     58          end
     59
     60          def as_integer
     61            is_integer if is_integer
     62          end
     63
     64          def is_empty
     65          end
     66
     67          def is_integer
     68            begin
     69              Integer(@content)
     70            rescue
     71              false
     72            end
     73          end
     74        end
    1875      end
    1976    end
Note: See TracChangeset for help on using the changeset viewer.