Class: Colours::Base
- Inherits:
-
Object
- Object
- Colours::Base
- Defined in:
- lib/colours/base/base.rb
Overview
Colours::Base
Direct Known Subclasses
Instance Method Summary collapse
-
#commandline_arguments? ⇒ Boolean
# === commandline_arguments? =========================================================================== #.
-
#e(i = '') ⇒ Object
# === e =========================================================================== #.
-
#extend_module_256_colours ⇒ Object
# === extend_module_256_colours =========================================================================== #.
-
#first_argument? ⇒ Boolean
# === first_argument? =========================================================================== #.
-
#second_argument? ⇒ Boolean
# === second_argument? =========================================================================== #.
-
#set_commandline_arguments(i) ⇒ Object
# === set_commandline_arguments =========================================================================== #.
Instance Method Details
#commandline_arguments? ⇒ Boolean
#
commandline_arguments?
#
43 44 45 |
# File 'lib/colours/base/base.rb', line 43 def commandline_arguments? @commandline_arguments end |
#e(i = '') ⇒ Object
#
e
#
29 30 31 |
# File 'lib/colours/base/base.rb', line 29 def e(i = '') ::Colours.e(i) end |
#extend_module_256_colours ⇒ Object
#
extend_module_256_colours
#
64 65 66 |
# File 'lib/colours/base/base.rb', line 64 def extend_module_256_colours extend ::Colours::Module256Colours end |
#first_argument? ⇒ Boolean
#
first_argument?
#
50 51 52 |
# File 'lib/colours/base/base.rb', line 50 def first_argument? @commandline_arguments.first end |
#second_argument? ⇒ Boolean
#
second_argument?
#
57 58 59 |
# File 'lib/colours/base/base.rb', line 57 def second_argument? @commandline_arguments[1] end |
#set_commandline_arguments(i) ⇒ Object
#
set_commandline_arguments
#
36 37 38 |
# File 'lib/colours/base/base.rb', line 36 def set_commandline_arguments(i) @commandline_arguments = [i].flatten.compact end |