Class: XSD::XSDDecimal
- Inherits:
-
XSDAnySimpleType
- Object
- NSDBase
- XSDAnySimpleType
- XSD::XSDDecimal
- Defined in:
- lib/xsd/datatypes.rb
Direct Known Subclasses
Constant Summary collapse
- Type =
QName.new(Namespace, DecimalLiteral)
Constants included from XSD
AnySimpleTypeLiteral, AnySimpleTypeName, AnyTypeLiteral, AnyTypeName, AnyURILiteral, AttrNilName, AttrType, AttrTypeName, Base64BinaryLiteral, BooleanLiteral, ByteLiteral, DateLiteral, DateTimeLiteral, DecimalLiteral, DoubleLiteral, DurationLiteral, FloatLiteral, GDayLiteral, GMonthDayLiteral, GMonthLiteral, GYearLiteral, GYearMonthLiteral, HexBinaryLiteral, InstanceNamespace, IntLiteral, IntegerLiteral, LongLiteral, Namespace, NegativeIntegerLiteral, NilLiteral, NilValue, NonNegativeIntegerLiteral, NonPositiveIntegerLiteral, NormalizedStringLiteral, PositiveIntegerLiteral, QNameLiteral, ShortLiteral, StringLiteral, TimeLiteral, UnsignedByteLiteral, UnsignedIntLiteral, UnsignedLongLiteral, UnsignedShortLiteral
Instance Attribute Summary
Attributes inherited from XSDAnySimpleType
Attributes inherited from NSDBase
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ XSDDecimal
constructor
A new instance of XSDDecimal.
- #nonzero? ⇒ Boolean
Methods inherited from XSDAnySimpleType
#check_lexical_format, #set, #to_s
Methods inherited from NSDBase
Constructor Details
#initialize(value = nil) ⇒ XSDDecimal
Returns a new instance of XSDDecimal.
232 233 234 |
# File 'lib/xsd/datatypes.rb', line 232 def initialize(value = nil) init(Type, value) end |
Instance Method Details
#nonzero? ⇒ Boolean
236 237 238 |
# File 'lib/xsd/datatypes.rb', line 236 def nonzero? (@number != '0') end |