Class: Dictionaries::Base
- Inherits:
-
Object
- Object
- Dictionaries::Base
show all
- Defined in:
- lib/dictionaries/base/base.rb
Overview
Instance Method Summary
collapse
-
#commandline_arguments? ⇒ Boolean
# === commandline_arguments? ========================================================================= #.
-
#first_argument? ⇒ Boolean
(also: #first?)
# === first_argument? ========================================================================= #.
-
#opne(i = '') ⇒ Object
# === opne ========================================================================= #.
-
#reset ⇒ Object
# === reset (reset tag) ========================================================================= #.
-
#rev ⇒ Object
# === rev (rev tag) ========================================================================= #.
-
#set_commandline_arguments(i = '') ⇒ Object
# === set_commandline_arguments ========================================================================= #.
-
#sfancy(i) ⇒ Object
# === sfancy ========================================================================= #.
Instance Method Details
#commandline_arguments? ⇒ Boolean
#
commandline_arguments?
#
40
41
42
|
# File 'lib/dictionaries/base/base.rb', line 40
def commandline_arguments?
@commandline_arguments
end
|
#first_argument? ⇒ Boolean
Also known as:
first?
47
48
49
|
# File 'lib/dictionaries/base/base.rb', line 47
def first_argument?
@commandline_arguments.first
end
|
#opne(i = '') ⇒ Object
74
75
76
|
# File 'lib/dictionaries/base/base.rb', line 74
def opne(i = '')
opnn; e i
end
|
#reset ⇒ Object
54
55
|
# File 'lib/dictionaries/base/base.rb', line 54
def reset
end
|
#rev ⇒ Object
60
61
62
|
# File 'lib/dictionaries/base/base.rb', line 60
def rev
::Colours.rev
end
|
#set_commandline_arguments(i = '') ⇒ Object
#
set_commandline_arguments
#
32
33
34
35
|
# File 'lib/dictionaries/base/base.rb', line 32
def set_commandline_arguments(i = '')
i = [i].flatten.compact
@commandline_arguments = i
end
|
#sfancy(i) ⇒ Object
67
68
69
|
# File 'lib/dictionaries/base/base.rb', line 67
def sfancy(i)
::Colours.sfancy(i.to_s)
end
|