class Microstation::Drawing::Number
Constants
- DRAWING_RE
Attributes
factype[R]
index[R]
locid[R]
Public Class Methods
from_string(drawing_name)
click to toggle source
# File lib/microstation/extensions/faa.rb, line 25 def self.from_string(drawing_name) md = DRAWING_RE.match(drawing_name.to_s) new(md[1],md[2],md[3]) end
new(locid,factype, index)
click to toggle source
# File lib/microstation/extensions/faa.rb, line 40 def initialize(locid,factype, index) @locid = locid.to_s.upcase @factype = factype.to_s.upcase @index = Index(index) end
Public Instance Methods
+(n)
click to toggle source
# File lib/microstation/extensions/faa.rb, line 56 def +(n) self.class.new(locid,factype,index.+(n)) end
-(n)
click to toggle source
# File lib/microstation/extensions/faa.rb, line 60 def -(n) self.class.new(locid,factype,index.-(n)) end
Index(str)
click to toggle source
# File lib/microstation/extensions/faa.rb, line 31 def Index(str) return str if str == Drawing::Index Drawing::Index.new(str.to_s) end
discipline()
click to toggle source
# File lib/microstation/extensions/faa.rb, line 52 def discipline index.discipline end
to_s()
click to toggle source
# File lib/microstation/extensions/faa.rb, line 48 def to_s [locid,'D',factype,index.to_s].join("-") end