Class: Graft::Xml::Type::Integer
- Inherits:
-
Graft::Xml::Type
- Object
- Graft::Xml::Type
- Graft::Xml::Type::Integer
- Defined in:
- lib/graft/lib/graft/xml/type.rb
Overview
Integer
Instance Method Summary collapse
Methods inherited from Graft::Xml::Type
Constructor Details
This class inherits a constructor from Graft::Xml::Type
Instance Method Details
#convert ⇒ Object
60 61 62 |
# File 'lib/graft/lib/graft/xml/type.rb', line 60 def convert @source.to_i end |
#convertible? ⇒ Boolean
56 57 58 |
# File 'lib/graft/lib/graft/xml/type.rb', line 56 def convertible? !@source.match(/\d+/).nil? end |