Class: SmoothOperator::Attributes::Normal

Inherits:
Base
  • Object
show all
Defined in:
lib/smooth_operator/attributes/normal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, parent_object) ⇒ Normal

Returns a new instance of Normal.



8
9
10
# File 'lib/smooth_operator/attributes/normal.rb', line 8

def initialize(name, value, parent_object)
  @value = cast_to_type(name, value, parent_object)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/smooth_operator/attributes/normal.rb', line 6

def value
  @value
end