Class: Dire::Other

Inherits:
Node
  • Object
show all
Defined in:
lib/dire/other.rb

Instance Attribute Summary

Attributes inherited from Node

#path, #root

Instance Method Summary collapse

Methods inherited from Node

#get, #initialize, #parent, #to_s

Constructor Details

This class inherits a constructor from Dire::Node

Instance Method Details

#known?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/dire/other.rb', line 3

def known?
  false
end

#typeObject



7
8
9
# File 'lib/dire/other.rb', line 7

def type
  'other'
end

#validate!Object



11
12
13
# File 'lib/dire/other.rb', line 11

def validate!
  super && validate_type!('other')
end