Class: Houston::Extensions::ProjectBannerFeatureDsl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#featureObject (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