Class: Cl::Ctx
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ui ⇒ Object
Returns the value of attribute ui.
Instance Method Summary collapse
- #abort(error, *strs) ⇒ Object
-
#initialize(name, opts = {}) ⇒ Ctx
constructor
A new instance of Ctx.
- #test? ⇒ Boolean
Constructor Details
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
12 13 14 |
# File 'lib/cl/ctx.rb', line 12 def config @config end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/cl/ctx.rb', line 12 def name @name end |
#ui ⇒ Object
Returns the value of attribute ui.
12 13 14 |
# File 'lib/cl/ctx.rb', line 12 def ui @ui end |
Instance Method Details
#abort(error, *strs) ⇒ Object
20 21 22 |
# File 'lib/cl/ctx.rb', line 20 def abort(error, *strs) ui.abort(error, *strs) end |
#test? ⇒ Boolean
24 25 26 |
# File 'lib/cl/ctx.rb', line 24 def test? ENV['ENV'] == 'test' end |