Module: EPUB::Publication::FixedLayout::PackageMixin
- Defined in:
- lib/epub/publication/fixed_layout.rb
Instance Method Summary collapse
- #using_fixed_layout ⇒ true, false (also: #using_fixed_layout?)
- #using_fixed_layout=(using_fixed_layout) ⇒ Object
Instance Method Details
#using_fixed_layout ⇒ true, false Also known as: using_fixed_layout?
66 67 68 69 |
# File 'lib/epub/publication/fixed_layout.rb', line 66 def using_fixed_layout prefix.has_key? PREFIX_KEY and prefix[PREFIX_KEY] == PREFIX_VALUE end |
#using_fixed_layout=(using_fixed_layout) ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/epub/publication/fixed_layout.rb', line 73 def using_fixed_layout=(using_fixed_layout) if using_fixed_layout prefix[PREFIX_KEY] = PREFIX_VALUE else prefix.delete PREFIX_KEY end end |