Class: YARD::CodeObjects::Cucumber::FeatureDirectory
- Inherits:
-
NamespaceObject
- Object
- NamespaceObject
- YARD::CodeObjects::Cucumber::FeatureDirectory
- Defined in:
- lib/yard/code_objects/cucumber/namespace_object.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
Instance Method Summary collapse
- #features ⇒ Object
-
#initialize(namespace, name) ⇒ FeatureDirectory
constructor
A new instance of FeatureDirectory.
- #location ⇒ Object
- #subdirectories ⇒ Object
- #value ⇒ Object
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
#description ⇒ Object
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
#features ⇒ Object
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 |
#location ⇒ Object
22 23 24 |
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 22 def location files.first.first if files && !files.empty? end |
#subdirectories ⇒ Object
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 |
#value ⇒ Object
26 |
# File 'lib/yard/code_objects/cucumber/namespace_object.rb', line 26 def value ; name ; end |