Class: Nero::Context
- Inherits:
-
Object
- Object
- Nero::Context
- Defined in:
- lib/nero/context.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#environ ⇒ Object
readonly
Returns the value of attribute environ.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #add_error(message) ⇒ Object
-
#initialize(environ:, errors:, dir: nil) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(environ:, errors:, dir: nil) ⇒ Context
Returns a new instance of Context.
7 8 9 10 11 |
# File 'lib/nero/context.rb', line 7 def initialize(environ:, errors:, dir: nil) @environ = environ @errors = errors @dir = dir || File.realpath(".") end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
5 6 7 |
# File 'lib/nero/context.rb', line 5 def dir @dir end |
#environ ⇒ Object (readonly)
Returns the value of attribute environ.
5 6 7 |
# File 'lib/nero/context.rb', line 5 def environ @environ end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/nero/context.rb', line 5 def errors @errors end |