Class: Houston::Extensions::GlobalFeature
- Inherits:
-
Object
- Object
- Houston::Extensions::GlobalFeature
- Defined in:
- lib/houston/boot/extensions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ability_block ⇒ Object
Returns the value of attribute ability_block.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path_block ⇒ Object
Returns the value of attribute path_block.
-
#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.
166 167 168 |
# File 'lib/houston/boot/extensions.rb', line 166 def ability_block @ability_block end |
#icon ⇒ Object
Returns the value of attribute icon.
166 167 168 |
# File 'lib/houston/boot/extensions.rb', line 166 def icon @icon end |
#name ⇒ Object
Returns the value of attribute name.
166 167 168 |
# File 'lib/houston/boot/extensions.rb', line 166 def name @name end |
#path_block ⇒ Object
Returns the value of attribute path_block.
166 167 168 |
# File 'lib/houston/boot/extensions.rb', line 166 def path_block @path_block end |
#slug ⇒ Object
Returns the value of attribute slug.
166 167 168 |
# File 'lib/houston/boot/extensions.rb', line 166 def slug @slug end |
Instance Method Details
#path ⇒ Object
168 169 170 |
# File 'lib/houston/boot/extensions.rb', line 168 def path path_block.call end |
#permitted?(ability) ⇒ Boolean
172 173 174 175 |
# File 'lib/houston/boot/extensions.rb', line 172 def permitted?(ability) return true if ability_block.nil? ability_block.call ability end |