Class: Fiona7::AttributeWriters::NumberAsString
- Inherits:
-
AttributeWriter
- Object
- AttributeWriter
- Fiona7::AttributeWriters::NumberAsString
- Defined in:
- lib/fiona7/attribute_writers/number_as_string.rb
Instance Method Summary collapse
Methods inherited from AttributeWriter
Constructor Details
This class inherits a constructor from Fiona7::AttributeWriters::AttributeWriter
Instance Method Details
#call(value, claimed_type = nil) ⇒ Object
6 7 8 |
# File 'lib/fiona7/attribute_writers/number_as_string.rb', line 6 def call(value, claimed_type=nil) self.obj.set(self.attr_name, value.to_s) end |