Module: Consular
- Defined in:
- lib/consular.rb,
lib/consular/cli.rb,
lib/consular/dsl.rb,
lib/consular/core.rb,
lib/consular/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"1.0.2"
Class Attribute Summary collapse
-
.default_editor ⇒ Object
Returns the value of attribute default_editor.
-
.global_path(path = nil) ⇒ String
Returns the global script path.
Class Method Summary collapse
-
.add_core(klass) ⇒ Object
Add a core to Consular.
-
.configure(&block) {|_self| ... } ⇒ Object
Configure Consular options.
-
.cores ⇒ Array<Core>
Returns all avaialble cores.
Class Attribute Details
.default_editor ⇒ Object
Returns the value of attribute default_editor.
12 13 14 |
# File 'lib/consular.rb', line 12 def default_editor @default_editor end |
.global_path(path = nil) ⇒ String
Returns the global script path. If not set, defaults to ~/.config/consular
45 46 47 |
# File 'lib/consular.rb', line 45 def global_path @global_path end |
Class Method Details
.add_core(klass) ⇒ Object
Add a core to Consular.
32 33 34 |
# File 'lib/consular.rb', line 32 def add_core(klass) cores << klass end |
.configure(&block) {|_self| ... } ⇒ Object
Configure Consular options.
63 64 65 |
# File 'lib/consular.rb', line 63 def configure(&block) yield self end |
.cores ⇒ Array<Core>
Returns all avaialble cores.
19 20 21 |
# File 'lib/consular.rb', line 19 def cores @cores ||= [] end |