Class: Trane::ErrorKeysBuilder
- Inherits:
-
Object
- Object
- Trane::ErrorKeysBuilder
- Defined in:
- lib/trane/operation_definition.rb
Overview
Builder for the errors do ... end block inside an operation
Instance Attribute Summary collapse
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize ⇒ ErrorKeysBuilder
constructor
A new instance of ErrorKeysBuilder.
- #key(error_key) ⇒ Object
Constructor Details
#initialize ⇒ ErrorKeysBuilder
Returns a new instance of ErrorKeysBuilder.
96 97 98 |
# File 'lib/trane/operation_definition.rb', line 96 def initialize @keys = [] end |
Instance Attribute Details
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
94 95 96 |
# File 'lib/trane/operation_definition.rb', line 94 def keys @keys end |
Instance Method Details
#key(error_key) ⇒ Object
100 101 102 |
# File 'lib/trane/operation_definition.rb', line 100 def key(error_key) @keys << error_key.to_sym end |