class Utils::LineFormatter
def description(example, full: ENV['VERBOSE'].to_i == 1)
-
(String)
- the appropriate description based on the full parameter value
Parameters:
-
full
(TrueClass, FalseClass
) -- determines whether to return the -
example
(Object
) -- the example object containing description
def description(example, full: ENV['VERBOSE'].to_i == 1) if full example.example.full_description else example.example.description end end