Class: FeatureToggle::Syntax::Feature

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/feature_toggle/syntax/feature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Shared

#desc, included, #initialize

Instance Attribute Details

#childrensObject (readonly)

Returns the value of attribute childrens.



6
7
8
# File 'lib/feature_toggle/syntax/feature.rb', line 6

def childrens
  @childrens
end

Instance Method Details

#feature(name, &block) ⇒ Object



10
11
12
13
14
# File 'lib/feature_toggle/syntax/feature.rb', line 10

def feature(name, &block)
  name = self.name + "." + name

  @childrens << Feature.new(name, block)
end