Class: ODDB::FiPDF::Rule

Inherits:
Object show all
Defined in:
ext/fipdf/src/rules.rb,
ext/fipdf/test/test_rules.rb

Direct Known Subclasses

FachinfoRule, OrphanRule, WidowRule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Rule

Returns a new instance of Rule.



14
15
16
17
18
# File 'ext/fipdf/src/rules.rb', line 14

def initialize(name)
	@name = name
	@pagebreak = 0
	@lines = 0
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'ext/fipdf/src/rules.rb', line 13

def name
  @name
end

Instance Method Details

#fulfilled?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'ext/fipdf/src/rules.rb', line 21

def fulfilled?
	false
end

#notify(event) ⇒ Object



19
20
# File 'ext/fipdf/src/rules.rb', line 19

def notify(event)
end