Class: Css2Cocoa::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/css2cocoa/cli.rb

Class Method Summary collapse

Class Method Details

.gradient(stdout, grad) ⇒ Object



12
13
14
# File 'lib/css2cocoa/cli.rb', line 12

def self.gradient(stdout, grad)
  stdout.puts Gradient::parse_gradient(grad.to_s)
end

.parse(stdout, grad) ⇒ Object



5
6
7
8
9
10
# File 'lib/css2cocoa/cli.rb', line 5

def self.parse(stdout, grad)
  case grad.shift
  when "gradient"
    CLI.gradient(stdout, grad.shift)
  end
end