Class: ODDB::FiPDF::Rule

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

Direct Known Subclasses

FachinfoRule, OrphanRule, WidowRule

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Rule) initialize(name)

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

- (Object) name (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

- (Boolean) fulfilled?

Returns:

  • (Boolean)


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

def fulfilled?
  false
end

- (Object) notify(event)



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

def notify(event)
end