new cfpropertylist and added possibility for plist_filename
This commit is contained in:
parent
ef9275886e
commit
30931f0384
2 changed files with 8 additions and 4 deletions
|
@ -77,7 +77,7 @@ module CFPropertyList
|
|||
def guess(object, options = {})
|
||||
if(object.is_a?(Fixnum) || object.is_a?(Integer)) then
|
||||
return CFInteger.new(object)
|
||||
elsif(object.is_a?(Float)) then
|
||||
elsif(object.is_a?(Float) || object.is_a?(BigDecimal)) then
|
||||
return CFReal.new(object)
|
||||
elsif(object.is_a?(TrueClass) || object.is_a?(FalseClass)) then
|
||||
return CFBoolean.new(object)
|
||||
|
|
Reference in a new issue