Class: ReVIEW::Retrovert::ReViewCompat

Inherits:
Object
  • Object
show all
Defined in:
lib/review/retrovert/reviewcompat.rb

Class Method Summary collapse

Class Method Details

.Catalog(path) ⇒ Object



50
51
52
# File 'lib/review/retrovert/reviewcompat.rb', line 50

def Catalog(path)
  ReVIEW::Catalog.new(File.open(path))
end

.has_bouObject



42
43
44
# File 'lib/review/retrovert/reviewcompat.rb', line 42

def has_bou()
  Gem::Version.new(ReVIEW::VERSION) >= Gem::Version.new('3.2.0')
end

.has_nested_minicolumnObject



29
30
31
# File 'lib/review/retrovert/reviewcompat.rb', line 29

def has_nested_minicolumn()
  Gem::Version.new(ReVIEW::VERSION) >= Gem::Version.new('5.0.0')
end

.is_allow_empty_image_captionObject



37
38
39
40
# File 'lib/review/retrovert/reviewcompat.rb', line 37

def is_allow_empty_image_caption()
  v = Gem::Version.new(ReVIEW::VERSION)
  v < Gem::Version.new('4.0.0') || v >= Gem::Version.new('5.1.0')
end

.is_need_space_term_listObject



33
34
35
# File 'lib/review/retrovert/reviewcompat.rb', line 33

def is_need_space_term_list()
  Gem::Version.new(ReVIEW::VERSION) >= Gem::Version.new('4.0.0')
end

.Preprocessor(param) ⇒ Object



46
47
48
# File 'lib/review/retrovert/reviewcompat.rb', line 46

def Preprocessor(param)
  Preprocessor.new(param)
end