Class: AbideDevUtils::CEM::Generate::Reference::ControlMarkdown
- Inherits:
-
Object
- Object
- AbideDevUtils::CEM::Generate::Reference::ControlMarkdown
- Defined in:
- lib/abide_dev_utils/cem/generate/reference.rb
Overview
Generates markdown for a control
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(control, md, strings, module_name, framework, formatter: nil, opts: {}) ⇒ ControlMarkdown
constructor
A new instance of ControlMarkdown.
Constructor Details
#initialize(control, md, strings, module_name, framework, formatter: nil, opts: {}) ⇒ ControlMarkdown
Returns a new instance of ControlMarkdown.
243 244 245 246 247 248 249 250 251 252 |
# File 'lib/abide_dev_utils/cem/generate/reference.rb', line 243 def initialize(control, md, strings, module_name, framework, formatter: nil, opts: {}) @control = control @md = md @strings = strings @module_name = module_name @framework = framework @formatter = formatter.nil? ? TypeExprValueFormatter : formatter @opts = opts @control_data = {} end |
Instance Method Details
#generate! ⇒ Object
254 255 256 257 258 259 260 261 262 263 |
# File 'lib/abide_dev_utils/cem/generate/reference.rb', line 254 def generate! heading_builder control_params_builder control_levels_builder control_profiles_builder config_example_builder control_alternate_ids_builder dependent_controls_builder resource_reference_builder end |