Class: ColorCommand

Inherits:
DevSystem::SimpleCommand show all
Defined in:
app/dev/commands/color_command.rb

Instance Attribute Summary

Attributes inherited from DevSystem::BaseCommand

#env

Instance Method Summary collapse

Methods inherited from DevSystem::SimpleCommand

#call, #log_simple_remember, #simple_arg, #simple_arg_ask, #simple_arg_ask_snakecase, #simple_args, #simple_boolean, #simple_boolean_no, #simple_boolean_yes, #simple_color, #simple_controller_placement, #simple_string

Methods inherited from DevSystem::BaseCommand

#args, #call, call, get_command_signatures

Methods inherited from DevSystem::Command

call, #call, get_command_signatures

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Instance Method Details

#call_defaultObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'app/dev/commands/color_command.rb', line 3

def call_default
  log "args are #{env[:args].inspect}"
  
  color = simple_color :color

  string = "Ruby was created in 1993 by the Japanese Computer Scientist Yukihiro Matsumoto with simplicity in mind"
  
  puts
  log stick string, color
  log stick string, color, :b
  log stick string, color, :b, :u
  log stick string, color, :b, :u, :i
  log stick string, color, :u, :i
  log stick string, color, :i
  log stick string, color, :i, :b
  
  puts
  log stick string, :black, color
  log stick string, :black, color, :b
  log stick string, :black, color, :b, :u
  log stick string, :black, color, :b, :u, :i
  log stick string, :black, color, :u, :i
  log stick string, :black, color, :i
  log stick string, :black, color, :i, :b
end