Class: YARD::CodeObjects::Cucumber::FeatureDirectory

Inherits:
NamespaceObject
  • Object
show all
Defined in:
lib/yard/code_objects/cucumber/namespace_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace, name) ⇒ FeatureDirectory

Returns a new instance of FeatureDirectory.



17
18
19
20
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 17

def initialize(namespace,name)
  super(namespace,name)
  @description = ""
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



15
16
17
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 15

def description
  @description
end

Instance Method Details

#featuresObject



28
29
30
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 28

def features
  children.find_all {|d| d.is_a?(Feature) } 
end

#locationObject



22
23
24
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 22

def location
  files.first.first if files && !files.empty?
end

#subdirectoriesObject



32
33
34
35
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 32

def subdirectories
  subdirectories = children.find_all {|d| d.is_a?(FeatureDirectory) }
  subdirectories + subdirectories.collect {|s| s.subdirectories }.flatten
end

#valueObject



26
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 26

def value ; name ; end