Class: Preflight::Rules::NoPageRotation
- Inherits:
-
Object
- Object
- Preflight::Rules::NoPageRotation
- Defined in:
- lib/preflight/rules/no_page_rotation.rb
Overview
Instance Attribute Summary collapse
-
#issues ⇒ Object
readonly
Returns the value of attribute issues.
Instance Method Summary collapse
Instance Attribute Details
#issues ⇒ Object (readonly)
Returns the value of attribute issues.
23 24 25 |
# File 'lib/preflight/rules/no_page_rotation.rb', line 23 def issues @issues end |
Instance Method Details
#page=(page) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/preflight/rules/no_page_rotation.rb', line 25 def page=(page) attrs = page.attributes if attrs[:Rotate] && page.objects.deref(attrs[:Rotate]) != 0 @issues = [Issue.new("Page is rotated", self, :page => page.number)] else @issues = [] end end |