Class: LegislationUK::ContentsPart
- Inherits:
-
Object
- Object
- LegislationUK::ContentsPart
- Includes:
- Helper, ItemNumberHelper, LegislationUriHelper, TitleHelper, Morph
- Defined in:
- lib/legislation_uk.rb
Instance Attribute Summary collapse
-
#legislation ⇒ Object
Returns the value of attribute legislation.
Instance Method Summary collapse
Methods included from LegislationUriHelper
Methods included from ItemNumberHelper
Methods included from TitleHelper
Methods included from Helper
Instance Attribute Details
#legislation ⇒ Object
Returns the value of attribute legislation.
156 157 158 |
# File 'lib/legislation_uk.rb', line 156 def legislation @legislation end |
Instance Method Details
#blocks ⇒ Object
158 159 160 |
# File 'lib/legislation_uk.rb', line 158 def blocks return_values :contents_pblocks end |
#sections ⇒ Object
162 163 164 165 166 167 168 |
# File 'lib/legislation_uk.rb', line 162 def sections if blocks.empty? return_values :contents_items else blocks.collect(&:sections).flatten end end |