class Riddl::Handlers::PlainType
Public Class Methods
handle(what,hinfo)
click to toggle source
# File lib/ruby/riddl/handlers/plain-type.rb, line 4 def self::handle(what,hinfo) if what.class == Riddl::Parameter::Tempfile w = what.read else w = what end begin hi = XML::Smart::string(hinfo) re = Regexp.new(hi.root.text) rescue return false end w =~ re end