class Sfp::Undefined
Instance of this class will be returned as the value of a non-exist variable
Attributes
path[RW]
type[RW]
Public Class Methods
create(type)
click to toggle source
# File lib/sfp/Sfplib.rb, line 175 def self.create(type) @@list = {} if !defined? @@list return @@list[type] if @@list.has_key?(type) (@@list[type] = Undefined.new(nil, type)) end
new(path=nil, type=nil)
click to toggle source
# File lib/sfp/Sfplib.rb, line 182 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 187 def to_s (@type.nil? ? "$.Undefined" : "$.Undefined.#{@type}") end