Class: Houston::Extensions::Deprecated::ProjectBannerFeatureDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions/deprecated.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature) ⇒ ProjectBannerFeatureDsl

Returns a new instance of ProjectBannerFeatureDsl.



179
180
181
# File 'lib/houston/boot/extensions/deprecated.rb', line 179

def initialize(feature)
  @feature = feature
end

Instance Attribute Details

#featureObject (readonly)

Returns the value of attribute feature.



177
178
179
# File 'lib/houston/boot/extensions/deprecated.rb', line 177

def feature
  @feature
end

Instance Method Details

#ability(&block) ⇒ Object



187
188
189
# File 'lib/houston/boot/extensions/deprecated.rb', line 187

def ability(&block)
  feature.ability_block = block
end

#partial(value) ⇒ Object



183
184
185
# File 'lib/houston/boot/extensions/deprecated.rb', line 183

def partial(value)
  feature.partial = value
end