Class: RelativeFXMLString

Inherits:
String
  • Object
show all
Defined in:
lib/fxmlloader/elts.rb

Instance Method Summary collapse

Constructor Details

#initialize(str, rel) ⇒ RelativeFXMLString

Returns a new instance of RelativeFXMLString.



560
561
562
563
# File 'lib/fxmlloader/elts.rb', line 560

def initialize(str, rel)
  super(rel)
  @rel = str
end

Instance Method Details

#classObject



570
571
572
# File 'lib/fxmlloader/elts.rb', line 570

def class()
  String
end

#inspectObject



564
565
566
# File 'lib/fxmlloader/elts.rb', line 564

def inspect
  "java.net.URL.new(__local_namespace['location'], #{@rel.inspect}).to_s"
end

#super_inspectObject



559
# File 'lib/fxmlloader/elts.rb', line 559

alias :super_inspect :inspect

#to_sObject



567
568
569
# File 'lib/fxmlloader/elts.rb', line 567

def to_s
  super
end