Sha256: 9cd6e3e218e2b6af74161139e095a42d55b37adf52882704fbeab9310c8ad22d

Contents?: true

Size: 217 Bytes

Versions: 105

Compression:

Stored size: 217 Bytes

Contents

class MLS::Property::String < MLS::Property
	
	def load(value) # from_json
		if value.nil?
			nil
		elsif value.is_a?(::String)
			value
		else
			value.to_s
		end
	end
	
	alias :dump :load #only for primatives
	
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
mls-0.2.21 lib/mls/properties/string.rb
mls-0.2.20 lib/mls/properties/string.rb
mls-0.2.19 lib/mls/properties/string.rb
mls-0.2.18 lib/mls/properties/string.rb
mls-0.2.17 lib/mls/properties/string.rb
mls-0.2.16 lib/mls/properties/string.rb
mls-0.2.15 lib/mls/properties/string.rb
mls-0.2.14 lib/mls/properties/string.rb
mls-0.2.13 lib/mls/properties/string.rb
mls-0.2.12 lib/mls/properties/string.rb
mls-0.2.11 lib/mls/properties/string.rb
mls-0.2.9.1 lib/mls/properties/string.rb
mls-0.2.10 lib/mls/properties/string.rb
mls-0.2.9 lib/mls/properties/string.rb
mls-0.2.8.2 lib/mls/properties/string.rb
mls-0.2.8.1 lib/mls/properties/string.rb
mls-0.2.8 lib/mls/properties/string.rb
mls-0.2.7 lib/mls/properties/string.rb
mls-0.2.6 lib/mls/properties/string.rb
mls-0.2.5 lib/mls/properties/string.rb