Class: SmoothOperator::Attributes::Base
- Inherits:
-
Object
- Object
- SmoothOperator::Attributes::Base
- Defined in:
- lib/smooth_operator/attributes/base.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, type, unknown_hash_class) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name, value, type, unknown_hash_class) ⇒ Base
10 11 12 |
# File 'lib/smooth_operator/attributes/base.rb', line 10 def initialize(name, value, type, unknown_hash_class) @value = TypeConverter.cast_to_type(name, value, type, self.class, unknown_hash_class) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/smooth_operator/attributes/base.rb', line 8 def value @value end |