Class: Houston::Extensions::ProjectBannerFeatureDsl
- Inherits:
-
Object
- Object
- Houston::Extensions::ProjectBannerFeatureDsl
- Defined in:
- lib/houston/boot/extensions.rb
Instance Attribute Summary collapse
-
#feature ⇒ Object
readonly
Returns the value of attribute feature.
Instance Method Summary collapse
- #ability(&block) ⇒ Object
-
#initialize(feature) ⇒ ProjectBannerFeatureDsl
constructor
A new instance of ProjectBannerFeatureDsl.
- #partial(value) ⇒ Object
Constructor Details
#initialize(feature) ⇒ ProjectBannerFeatureDsl
Returns a new instance of ProjectBannerFeatureDsl.
267 268 269 |
# File 'lib/houston/boot/extensions.rb', line 267 def initialize(feature) @feature = feature end |
Instance Attribute Details
#feature ⇒ Object (readonly)
Returns the value of attribute feature.
265 266 267 |
# File 'lib/houston/boot/extensions.rb', line 265 def feature @feature end |
Instance Method Details
#ability(&block) ⇒ Object
275 276 277 |
# File 'lib/houston/boot/extensions.rb', line 275 def ability(&block) feature.ability_block = block end |
#partial(value) ⇒ Object
271 272 273 |
# File 'lib/houston/boot/extensions.rb', line 271 def partial(value) feature.partial = value end |