class JsDuck::ClassNameString
String class for classnames that has extra method exists?
which returns false when class with such name doesn't exist.
This ability is used by JsDuck::Renderer, which only receives names of various classes but needs to only render existing classes as links.
Public Class Methods
new(str, exists=true)
click to toggle source
Calls superclass method
# File lib/jsduck/class.rb, line 208 def initialize(str, exists=true) super(str) @exists = exists end
Public Instance Methods
exists?()
click to toggle source
# File lib/jsduck/class.rb, line 213 def exists? @exists end