Class: RuboCop::Schema::AsciiDoc::Stringifier

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/rubocop/schema/ascii_doc/stringifier.rb

Instance Method Summary collapse

Methods included from Helpers

#boolean, #deep_dup, #deep_merge, #http_get, #strip_html, #template, templates

Instance Method Details

#stringify(section) ⇒ Object

Parameters:

  • section (Asciidoctor::Section)


10
11
12
13
14
15
# File 'lib/rubocop/schema/ascii_doc/stringifier.rb', line 10

def stringify(section)
  method = :"stringify_#{section.context}"
  raise "Don't know what to do with #{section.context}" unless private_methods(false).include? method

  __send__(method, section)
end