diff options
| author | Robert | 2017-12-07 11:15:01 +0100 |
|---|---|---|
| committer | Robert | 2017-12-14 15:34:46 +0100 |
| commit | 9bde9a3d24e3893a7a4ee89c95044899e59c89f4 (patch) | |
| tree | 4dd868a0b80a11a9957bd16d0bdf6a1004fd8707 | |
| parent | 16d66dd5df93a11604ba29ea563fb7005b61367b (diff) | |
| download | chouette-core-9bde9a3d24e3893a7a4ee89c95044899e59c89f4.tar.bz2 | |
Refs #5006@0.5h; CR pass II
| -rw-r--r-- | lib/stif/codifligne_line_id.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/stif/codifligne_line_id.rb b/lib/stif/codifligne_line_id.rb index 4021996a7..8c1bcc54b 100644 --- a/lib/stif/codifligne_line_id.rb +++ b/lib/stif/codifligne_line_id.rb @@ -3,14 +3,17 @@ module STIF LINE_OBJECT_ID_SEPERATOR = ':' - def extract_codif_line_id line_name - line_name.split(LINE_OBJECT_ID_SEPERATOR).last - end - def lines_set_from_functional_scope(functional_scope) Set.new( functional_scope .map{ |line| extract_codif_line_id line }) end + + + private + + def extract_codif_line_id line_name + line_name.split(LINE_OBJECT_ID_SEPERATOR).last + end end end |
