 
     getter = -> _val
     setter = (value) ->
+      switch ltype
+        when 'string' then is_valid = (typeof value is 'string')
+        when 'number' then is_valid = (typeof value is 'number')
+        else is_valid = (value instanceof type)
 
-      switch ltype
-        when 'string' then f = (typeof value is 'string')
-        when 'number' then f = (typeof value is 'number')
-        else f = (value instanceof type)
-
-      if f
+      if is_valid or opts.validate is false
         _val = value
         @update field, _val
       else

    for k, v of resources
      @[k] = @_build_rest.apply @, [k].concat(v.concat host)

  @fields = ( fields ) ->
    @_build_gs key, type for key, type of fields




  @param [String] field
  @param [String] type
  ###
  @_build_gs = ( field, type, opts ) ->
    _val = null

    classname = ("#{@}".match /function\s(\w+)/)[1]
