Class: Caligrafo::Converter::Numerico
- Inherits:
-
Base
- Object
- Base
- Caligrafo::Converter::Numerico
show all
- Defined in:
- lib/caligrafo/converter.rb
Instance Attribute Summary
Attributes inherited from Base
#tipos
Instance Method Summary
collapse
Methods inherited from Base
#preencher, #value_to_string
Constructor Details
Returns a new instance of Numerico.
72
73
74
|
# File 'lib/caligrafo/converter.rb', line 72
def initialize
@tipos = [Fixnum]
end
|
Instance Method Details
#alinhamento ⇒ Object
80
81
82
|
# File 'lib/caligrafo/converter.rb', line 80
def alinhamento
:direita
end
|
#preenchimento ⇒ Object
84
85
86
|
# File 'lib/caligrafo/converter.rb', line 84
def preenchimento
'0'
end
|
#string_to_value(string) ⇒ Object
76
77
78
|
# File 'lib/caligrafo/converter.rb', line 76
def string_to_value(string)
string.to_i
end
|