Class: Houston::Extensions::ProjectColumnDsl
- Inherits:
-
Object
- Object
- Houston::Extensions::ProjectColumnDsl
- 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
- #html(&block) ⇒ Object
-
#initialize(feature) ⇒ ProjectColumnDsl
constructor
A new instance of ProjectColumnDsl.
- #name(value) ⇒ Object
Constructor Details
#initialize(feature) ⇒ ProjectColumnDsl
Returns a new instance of ProjectColumnDsl.
299 300 301 |
# File 'lib/houston/boot/extensions.rb', line 299 def initialize(feature) @feature = feature end |
Instance Attribute Details
#feature ⇒ Object (readonly)
Returns the value of attribute feature.
297 298 299 |
# File 'lib/houston/boot/extensions.rb', line 297 def feature @feature end |
Instance Method Details
#ability(&block) ⇒ Object
311 312 313 |
# File 'lib/houston/boot/extensions.rb', line 311 def ability(&block) feature.ability_block = block end |
#html(&block) ⇒ Object
307 308 309 |
# File 'lib/houston/boot/extensions.rb', line 307 def html(&block) feature.html_block = block end |
#name(value) ⇒ Object
303 304 305 |
# File 'lib/houston/boot/extensions.rb', line 303 def name(value) feature.name = value end |