Top Level Namespace

Defined Under Namespace

Modules: Prawnto, Rails

Instance Method Summary collapse

Instance Method Details

#base_class_for_template_handler_required?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/prawnto/available_features.rb', line 14

def base_class_for_template_handler_required?
  ::Rails::VERSION::MAJOR < 3
end

#class_attribute_supported?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/prawnto/available_features.rb', line 26

def class_attribute_supported?
  ::Rails::VERSION::MAJOR >= 3
end

#template_has_class_level_call_method?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/prawnto/available_features.rb', line 22

def template_has_class_level_call_method?
  ::Rails::VERSION::MAJOR > 3 || (::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1)
end

#template_should_include_compilable?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/prawnto/available_features.rb', line 18

def template_should_include_compilable?
  ::Rails::VERSION::MAJOR < 3
end