Sha256: 931e28f9f1b9e7fc5b39ca1faf82913d357e3e5acac31fc073166ec8b84b32a0
Contents?: true
Size: 862 Bytes
Versions: 19
Compression:
Stored size: 862 Bytes
Contents
module YARD::CodeObjects NamespaceObject.class_eval do def remove_child(child) children.delete(child) end def add_child(child) children << child end attr_accessor :features def features(opts = {}) children.select {|child| child.type == :feature } end attr_accessor :scenarios def scenarios(opts = {}) children.select {|child| child.type == :scenario } end attr_accessor :steps def steps(opts = {}) children.select {|child| child.type == :step } end attr_accessor :step_definitions def step_definitions(opts = {}) children.select {|child| child.type == :stepdefinition } end attr_accessor :step_transforms def step_transforms(opts = {}) children.select {|child| child.type == :steptransform } end end end
Version data entries
19 entries across 19 versions & 1 rubygems