Sha256: d8bb45e4571934fbffe7fd1c4c9032b5bff49223001fc87118b64f791f5c3486
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
#encoding: UTF-8 module Str2Duck def self.parse string_data_obj raise ArgumentError,"invalid input, must be string!" if string_data_obj.class != String return_value= nil Str2Duck::Format.singleton_methods.each do |method_name| return_value ||= Str2Duck::Format.__send__ method_name, string_data_obj end return_value ||= string_data_obj return return_value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
str2duck-1.0.1 | lib/str2duck/parser.rb |
str2duck-1.0.0 | lib/str2duck/parser.rb |