Class: LeanCloud::LeanObject
- Inherits:
-
Object
- Object
- LeanCloud::LeanObject
show all
- Defined in:
- lib/leancloud/leanobject.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#exit_with_error(msg) ⇒ Object
12
13
14
15
|
# File 'lib/leancloud/leanobject.rb', line 12
def exit_with_error(msg)
show_error(msg)
exit
end
|
#exit_with_info(msg) ⇒ Object
17
18
19
20
|
# File 'lib/leancloud/leanobject.rb', line 17
def exit_with_info(msg)
puts msg
exit
end
|
#show_error(msg) ⇒ Object
8
9
10
|
# File 'lib/leancloud/leanobject.rb', line 8
def show_error(msg)
puts(msg.colorize(:red))
end
|
#show_message(msg) ⇒ Object
26
27
28
|
# File 'lib/leancloud/leanobject.rb', line 26
def show_message(msg)
puts("==> #{msg}")
end
|
#show_success(msg) ⇒ Object
22
23
24
|
# File 'lib/leancloud/leanobject.rb', line 22
def show_success(msg)
puts(msg.colorize(:green))
end
|