class Interscript::Node::Dependency

Attributes

document[RW]
full_name[RW]
import[RW]
name[RW]

Public Class Methods

new() click to toggle source
# File lib/interscript/node/dependency.rb, line 4
def initialize
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method Interscript::Node#==
# File lib/interscript/node/dependency.rb, line 16
def ==(other)
  super &&
  self.full_name == other.full_name &&
  self.import == other.import &&
  self.name == other.name
end
reverse() click to toggle source
# File lib/interscript/node/dependency.rb, line 7
def reverse
  rdep = self.class.new
  rdep.name = name
  rdep.full_name = Interscript::Node::Document.reverse_name(full_name)
  rdep.import = import
  rdep.document = document&.reverse
  rdep
end
to_hash() click to toggle source
# File lib/interscript/node/dependency.rb, line 23
def to_hash
  { :class => self.class.to_s,
    :name => @name,
    :full_name => @full_name,
    :import => @import }
end