Class: Compass::Commands::PrintVersion
- Inherits:
-
Object
- Object
- Compass::Commands::PrintVersion
- Defined in:
- lib/compass/commands/print_version.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(working_path, options) ⇒ PrintVersion
constructor
A new instance of PrintVersion.
- #perform ⇒ Object
Constructor Details
#initialize(working_path, options) ⇒ PrintVersion
Returns a new instance of PrintVersion.
5 6 7 |
# File 'lib/compass/commands/print_version.rb', line 5 def initialize(working_path, ) self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/compass/commands/print_version.rb', line 4 def @options end |
Instance Method Details
#perform ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/compass/commands/print_version.rb', line 9 def perform if [:quiet] # The quiet option may make scripting easier puts ::Compass.version[:string] else lines = [] lines << "Compass #{::Compass.version[:string]}" lines << "Copyright (c) 2008 Chris Eppstein" lines << "Released under the MIT License." puts lines.join("\n") end end |