module FeatureToggle::Syntax::Shared
Public Class Methods
included(base)
click to toggle source
# File lib/feature_toggle/syntax/shared.rb, line 4 def self.included(base) base.send :attr_reader, :name end
new(name, block = nil)
click to toggle source
# File lib/feature_toggle/syntax/shared.rb, line 8 def initialize(name, block = nil) @name = name instance_eval(&block) if block.is_a? Proc end
Public Instance Methods
desc(description = nil)
click to toggle source
# File lib/feature_toggle/syntax/shared.rb, line 13 def desc(description = nil) return @desc if description.blank? @desc = description end