Module: EPUB::Publication::FixedLayout::PackageMixin

Defined in:
lib/epub/publication/fixed_layout.rb

Instance Method Summary collapse

Instance Method Details

#using_fixed_layouttrue, false Also known as: using_fixed_layout?

Returns:

  • (true, false)


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

Parameters:

  • using_fixed_layout (true, false)


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