Class: Gat::Dependence::Base
- Inherits:
-
Object
- Object
- Gat::Dependence::Base
- Defined in:
- lib/gat/dependence/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #evalue ⇒ Object
-
#initialize(name, config, operation) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name, config, operation) ⇒ Base
Returns a new instance of Base.
38 39 40 41 42 43 44 |
# File 'lib/gat/dependence/base.rb', line 38 def initialize(name, config, operation) operation.gatget.logger.log("trace", "dependence", "Initialize dependence #{ self.class } @#{ name }") @operation = operation @config = config @name = name @description = @config['description'] || "Another #{ self.class } dependence named #{ self.name }" end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
29 30 31 |
# File 'lib/gat/dependence/base.rb', line 29 def config @config end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
32 33 34 |
# File 'lib/gat/dependence/base.rb', line 32 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
30 31 32 |
# File 'lib/gat/dependence/base.rb', line 30 def name @name end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
28 29 30 |
# File 'lib/gat/dependence/base.rb', line 28 def operation @operation end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31 32 33 |
# File 'lib/gat/dependence/base.rb', line 31 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
35 36 37 |
# File 'lib/gat/dependence/base.rb', line 35 def value @value end |
Instance Method Details
#evalue ⇒ Object
47 48 49 |
# File 'lib/gat/dependence/base.rb', line 47 def evalue raise GatgetException.new("Evalue method is not available at Gat::Dependece. Create your own at #{ self.class }", 'evalue_dependence_without_type') end |