Class: SvgConform::Commands::Profiles
- Inherits:
-
Object
- Object
- SvgConform::Commands::Profiles
- Defined in:
- lib/svg_conform/commands/profiles.rb
Overview
Profiles command for listing available validation profiles
Defined Under Namespace
Classes: ProfilesError
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Profiles
constructor
A new instance of Profiles.
Constructor Details
#initialize(options) ⇒ Profiles
Returns a new instance of Profiles.
13 14 15 16 |
# File 'lib/svg_conform/commands/profiles.rb', line 13 def initialize() @options = # Paint doesn't need initialization like Pastel end |
Instance Method Details
#execute ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/svg_conform/commands/profiles.rb', line 18 def execute profiles = load_available_profiles if @options[:verbose] display_detailed_profiles(profiles) else display_profile_list(profiles) end end |