Module: Kojo
- Defined in:
- lib/kojo.rb,
lib/kojo/cli.rb,
lib/kojo/form.rb,
lib/kojo/config.rb,
lib/kojo/version.rb,
lib/kojo/template.rb,
lib/kojo/collection.rb,
lib/kojo/exceptions.rb,
lib/kojo/commands/dir.rb,
lib/kojo/commands/file.rb,
lib/kojo/commands/form.rb,
lib/kojo/commands/single.rb,
lib/kojo/commands/to_json.rb,
lib/kojo/refinements/hash.rb,
lib/kojo/refinements/array.rb,
lib/kojo/refinements/string.rb,
lib/kojo/commands/command_base.rb,
lib/kojo/front_matter_template.rb
Defined Under Namespace
Modules: Commands, Refinements Classes: CLI, Collection, Config, Error, Form, FrontMatterTemplate, Interrupt, NotFoundError, Template, TemplateError
Constant Summary collapse
- VERSION =
'0.4.4'
Class Attribute Summary collapse
-
.interactive ⇒ Object
writeonly
Sets the attribute interactive.
Class Method Summary collapse
Class Attribute Details
.interactive=(value) ⇒ Object (writeonly)
Sets the attribute interactive
19 20 21 |
# File 'lib/kojo.rb', line 19 def interactive=(value) @interactive = value end |
Class Method Details
.interactive? ⇒ Boolean
21 22 23 24 25 |
# File 'lib/kojo.rb', line 21 def interactive? return @interactive unless @interactive.nil? @interactive = ENV['KOJO_INTERACTIVE'] == 'yes' end |