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.



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

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

Instance Method Details

#classObject



573
574
575
# File 'lib/fxmlloader/elts.rb', line 573

def class()
  String
end

#inspectObject



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

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

#super_inspectObject



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

alias :super_inspect :inspect

#to_sObject



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

def to_s
  super
end