lib/eddy/models/element/b.rb in eddy-0.6.0 vs lib/eddy/models/element/b.rb in eddy-0.7.0
- old
+ new
@@ -28,25 +28,28 @@
self.req = req
self.ref = ref
self.value = val
end
+ # @param _arg [Object] Whatever is to be assigned to `value`
+ # @return [void]
+ def value=(_arg)
+ super()
+ end
+
# @raise [Eddy::Errors::ElementNilValueError] If the element is required and no value has been set.
# @return [String<Binary>]
def value()
- super()
- if @val.nil?
- case self.req
- when "M" then raise Eddy::Errors::ElementNilValueError.new(element: self)
- when "O", "C" then return ""
- else raise Eddy::Errors::Error, "Invalid req value: #{self.req}"
- end
- end
+ return super()
end
- # @param _arg [Object] Whatever is to be assigned to `value`
- # @return [void]
- def value=(_arg)
+ # @return [String]
+ def process_value()
+ return self.class.process_value()
+ end
+
+ # @return [String]
+ def self.process_value()
super()
end
end
end