lib/teapot/loader.rb
# Checks the host patterns and executes the block if they match.
Checks the host patterns and executes the block if they match.
Checks the host patterns and executes the block if they match .
def host(*args, &block)
			name = @context.options[:host_platform] || RUBY_PLATFORM
			if block_given?
				if args.find{|arg| arg === name}
					yield
				end
			else
				name
			end
		end
def host ( * args , & block ) name = @context . options [ :host_platform ] || RUBY_PLATFORM if block_given? if args . find { | arg | arg === name } yield end else name end end
Checks the host patterns and executes the block if they match.
Checks the host patterns and executes the block if they match .
args
block