Class: Objc2swiftAssistant::GeneratedSwiftFileNode

Inherits:
SourceFileNode show all
Defined in:
lib/objc2swift_assistant/file_sets.rb

Instance Attribute Summary collapse

Attributes inherited from SourceFileNode

#directory_node, #file_set, #should_be_used

Instance Method Summary collapse

Constructor Details

#initialize(directory_node, file_name) ⇒ GeneratedSwiftFileNode

Returns a new instance of GeneratedSwiftFileNode.



531
532
533
534
535
# File 'lib/objc2swift_assistant/file_sets.rb', line 531

def initialize( directory_node, file_name )
  super( directory_node )
  @full_path = directory_node.full_path + file_name
  @relative_path = directory_node.relative_path + file_name
end

Instance Attribute Details

#full_pathObject

Returns the value of attribute full_path.



528
529
530
# File 'lib/objc2swift_assistant/file_sets.rb', line 528

def full_path
  @full_path
end

#relative_pathObject

Returns the value of attribute relative_path.



529
530
531
# File 'lib/objc2swift_assistant/file_sets.rb', line 529

def relative_path
  @relative_path
end