Module: Dire::Module::Check

Defined in:
lib/dire/module/check.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



2
3
4
# File 'lib/dire/module/check.rb', line 2

def == other
  path.to_s == other.path.to_s
end

#broken?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/dire/module/check.rb', line 6

def broken?
  false
end

#known?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/dire/module/check.rb', line 10

def known?
  true
end

#parent?(node) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/dire/module/check.rb', line 14

def parent? node
  parent == node
end

#root?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/dire/module/check.rb', line 18

def root?
  false
end