# File lib/graphviz/types/gv_bool.rb, line 23 def check(data) if true == data or (data.is_a?(Integer) and data != 0) or (data.is_a?(String) and !BOOL_FALSE.include?(data.downcase)) @to_ruby = true return data end if false == data or (data.is_a?(Integer) and data == 0) or (data.is_a?(String) and BOOL_FALSE.include?(data.downcase)) @to_ruby = false return data end raise BoolException, "Invalid bool value" end
# File lib/graphviz/types/gv_bool.rb, line 37 def output return @data.to_s.inspect.gsub( "\\\\", "\\" ) end
Generated with the Darkfish Rdoc Generator 2.