class Sfp::Unknown
Instance of this class will be return as the value of an unknown variable in open-world assumption.
Attributes
path[RW]
type[RW]
Public Class Methods
create(type)
click to toggle source
# File lib/sfp/Sfplib.rb, line 195 def self.create(type) @@list = {} if !defined? @@list return @@list[type] if @@list.has_key?(type) (@@list[type] = Unknown.new(nil, type)) end
new(path=nil, type=nil)
click to toggle source
# File lib/sfp/Sfplib.rb, line 202 def initialize(path=nil, type=nil) @path = path @type = type end
Public Instance Methods
to_s()
click to toggle source
# File lib/sfp/Sfplib.rb, line 207 def to_s (@type.nil? ? "$.Unknown" : "$.Unknown.#{@type}") end