Ignore:
Timestamp:
Feb 13, 2008, 8:31:25 AM (16 years ago)
Author:
KOBAYASHI, Shinji
Message:

demographic class added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/models/rm/common/archetyped.rb

    r4 r7  
    3030            raise NotImplementError, "path_unique must be implemented"
    3131          end
    32         module
     32        end
    3333        class Locatable < Pathable
    3434          include Locater_Constants
     
    3838                         feeder_audit, links, parent)
    3939            super(parent)
    40             if archetype_node_id == nil
     40            if archetype_node_id.nil?
    4141              raise ArgumentError, "null archetype_node_id"
    4242            end
    43             if name == nil
     43            if name.nil?
    4444              raise ArgumentError, "name is empty"
    4545            end
    46             if links == nil
     46            if links.nil?
    4747              raise ArgumentError, "links is empty"
    4848            end
     
    5454          end
    5555          def item_at_path(path)
    56             if @path == nil
    57 
     56            if !@path.nil?
     57              if @path == ""
     58                raise ArgumentError, "path is not valid"
     59              end
     60            end
    5861          end
    59           def items_at_path
     62          def items_at_path(path)
    6063            raise NotImplementError, "items_at_path must be implemented"
    6164          end
     
    6972          end
    7073          def is_archetype_root?
    71             archetype_details != nil
     74            !archetype_details.nil?
    7275          end
    7376        end
Note: See TracChangeset for help on using the changeset viewer.