Class: Houston::Extensions::ProjectColumn
- Inherits:
-
Object
- Object
- Houston::Extensions::ProjectColumn
- Defined in:
- lib/houston/boot/extensions.rb
Instance Attribute Summary collapse
-
#ability_block ⇒ Object
Returns the value of attribute ability_block.
-
#html_block ⇒ Object
Returns the value of attribute html_block.
-
#name ⇒ Object
Returns the value of attribute name.
-
#slug ⇒ Object
Returns the value of attribute slug.
Instance Method Summary collapse
Instance Attribute Details
#ability_block ⇒ Object
Returns the value of attribute ability_block.
282 283 284 |
# File 'lib/houston/boot/extensions.rb', line 282 def ability_block @ability_block end |
#html_block ⇒ Object
Returns the value of attribute html_block.
281 282 283 |
# File 'lib/houston/boot/extensions.rb', line 281 def html_block @html_block end |
#name ⇒ Object
Returns the value of attribute name.
284 285 286 |
# File 'lib/houston/boot/extensions.rb', line 284 def name @name end |
#slug ⇒ Object
Returns the value of attribute slug.
283 284 285 |
# File 'lib/houston/boot/extensions.rb', line 283 def slug @slug end |
Instance Method Details
#permitted?(ability) ⇒ Boolean
290 291 292 293 |
# File 'lib/houston/boot/extensions.rb', line 290 def permitted?(ability) return true if ability_block.nil? ability_block.call ability end |
#render(project) ⇒ Object
286 287 288 |
# File 'lib/houston/boot/extensions.rb', line 286 def render(project) html_block.call project end |