Module: Broadway::Sluggable::InstanceMethods
- Defined in:
- lib/broadway/mixins/sluggable.rb
Instance Attribute Summary collapse
-
#slug ⇒ Object
Returns the value of attribute slug.
Instance Method Summary collapse
Instance Attribute Details
#slug ⇒ Object
Returns the value of attribute slug.
8 9 10 |
# File 'lib/broadway/mixins/sluggable.rb', line 8 def slug @slug end |
Instance Method Details
#path ⇒ Object
18 19 20 |
# File 'lib/broadway/mixins/sluggable.rb', line 18 def path slug.path end |
#permalink ⇒ Object
30 31 32 |
# File 'lib/broadway/mixins/sluggable.rb', line 30 def permalink self.data['permalink'] end |
#scope ⇒ Object
26 27 28 |
# File 'lib/broadway/mixins/sluggable.rb', line 26 def scope slug.scope end |
#url ⇒ Object
22 23 24 |
# File 'lib/broadway/mixins/sluggable.rb', line 22 def url slug.url end |